Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruPagge <git@upagge.ru>2021-05-12 19:28:16 +0300
committeruPagge <git@upagge.ru>2021-05-12 19:28:16 +0300
commitb2ba7e5245ddc815294e2ca38e8b3ca00721f8e6 (patch)
tree9576816aaefedc4a6ba00ba00de0b9fb22020028 /layouts/posts
parent8acb188d55253890b13ba4dc02331565c4fcd084 (diff)
render image 2000x
Diffstat (limited to 'layouts/posts')
-rw-r--r--layouts/posts/single.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index ae03021..7a51e4f 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -86,8 +86,8 @@
{{- $heroImage := "" -}}
{{- with .Resources.GetMatch "featured-image" -}}
- {{- if lt 1600 .Width -}}
- {{- $heroImage = (.Resize "1600x q100").Permalink -}}
+ {{- if lt 2000 .Width -}}
+ {{- $heroImage = (.Resize "2000x q100").Permalink -}}
{{- else -}}
{{- $heroImage = .Permalink -}}
{{- end -}}
@@ -157,8 +157,8 @@
{{- $fullImage := $image -}}
{{- if eq $pageTheme "full" -}}
{{- with $.Resources.GetMatch "featured-image" -}}
- {{- if lt 1600 .Width -}}
- {{- $fullImage = (.Resize "1600x q100").Permalink -}}
+ {{- if lt 2000 .Width -}}
+ {{- $fullImage = (.Resize "2000x q100").Permalink -}}
{{- else -}}
{{- $fullImage = .Permalink -}}
{{- end -}}