diff options
author | uPagge <git@upagge.ru> | 2021-05-12 19:28:16 +0300 |
---|---|---|
committer | uPagge <git@upagge.ru> | 2021-05-12 19:28:16 +0300 |
commit | b2ba7e5245ddc815294e2ca38e8b3ca00721f8e6 (patch) | |
tree | 9576816aaefedc4a6ba00ba00de0b9fb22020028 /layouts | |
parent | 8acb188d55253890b13ba4dc02331565c4fcd084 (diff) |
render image 2000x
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/_markup/render-image.html | 4 | ||||
-rw-r--r-- | layouts/posts/single.html | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 58f76e9..4546f01 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -6,8 +6,8 @@ {{- end -}} {{ $imageOriginal := .Page.Resources.GetMatch (printf "%s" (.Destination | safeURL)) }} {{ if $imageOriginal }} -{{ if lt 1600 $imageOriginal.Width }} -{{ $imageOriginal = ($imageOriginal.Resize "1600x q100").Permalink }} +{{ if lt 2000 $imageOriginal.Width }} +{{ $imageOriginal = ($imageOriginal.Resize "2000x q100").Permalink }} {{ end }} {{ else }} {{ $imageOriginal = .Destination }} 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 -}} |