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
parent8acb188d55253890b13ba4dc02331565c4fcd084 (diff)
render image 2000x
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/_markup/render-image.html4
-rw-r--r--layouts/posts/single.html8
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 -}}