diff --git a/config/_default/params.toml b/config/_default/params.toml index f1baee3..e049622 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -76,6 +76,8 @@ SortBy = "default" default = "auto" [imageProcessing] + autoOrient = false + [imageProcessing.content] widths = [800, 1600, 2400] enabled = true diff --git a/layouts/_markup/render-image.html b/layouts/_markup/render-image.html index 2d0ebc9..8e8871b 100644 --- a/layouts/_markup/render-image.html +++ b/layouts/_markup/render-image.html @@ -1,4 +1,4 @@ -{{- $image := partial "helper/image" (dict "Resources" .Page.Resources "Image" .Destination) -}} +{{- $image := partial "helper/image" (dict "Resources" .Page.Resources "Image" .Destination "Context" .Page) -}} {{- $alt := .PlainText | safeHTML -}} {{- $title := .Title | markdownify -}} diff --git a/layouts/_partials/article-list/compact.html b/layouts/_partials/article-list/compact.html index dd6bcf5..e41f0c3 100644 --- a/layouts/_partials/article-list/compact.html +++ b/layouts/_partials/article-list/compact.html @@ -23,7 +23,7 @@ {{- end -}} - {{- $image := partial "helper/image" (dict "Image" .Params.image "Resources" .Resources) -}} + {{- $image := partial "helper/image" (dict "Image" .Params.image "Resources" .Resources "Context" .) -}} {{ if $image }}