diff --git a/config.toml b/config.toml index 6e4c003c..0fed01eb 100644 --- a/config.toml +++ b/config.toml @@ -2,4 +2,4 @@ [module.hugoVersion] extended = true min = "0.87.0" - max = "0.115.4" \ No newline at end of file + max = "0.116.1" \ No newline at end of file diff --git a/layouts/partials/author-extra.html b/layouts/partials/author-extra.html index ccab16a7..4b27831c 100644 --- a/layouts/partials/author-extra.html +++ b/layouts/partials/author-extra.html @@ -1,8 +1,11 @@ +{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
{{ with .data.image }} {{ $authorImage := resources.Get . }} {{ if $authorImage }} - {{ $authorImage := $authorImage.Fill "192x192" }} + {{ if not $disableImageOptimization }} + {{ $authorImage = $authorImage.Fill "192x192" }} + {{ end }} {{ end }} diff --git a/layouts/partials/author.html b/layouts/partials/author.html index e58a9483..f519db94 100644 --- a/layouts/partials/author.html +++ b/layouts/partials/author.html @@ -1,8 +1,11 @@ +{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
{{ with .Site.Author.image }} {{ $authorImage := resources.Get . }} {{ if $authorImage }} - {{ $authorImage := $authorImage.Fill "192x192" }} + {{ if not $disableImageOptimization }} + {{ $authorImage = $authorImage.Fill "192x192" }} + {{ end }} {{ $.Site.Author.name | default {{ end }} diff --git a/layouts/partials/home/background.html b/layouts/partials/home/background.html index a4259f8e..4ea65da9 100644 --- a/layouts/partials/home/background.html +++ b/layouts/partials/home/background.html @@ -1,3 +1,4 @@ +{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
@@ -21,7 +22,9 @@ {{ with .Site.Author.image }} {{ $authorImage := resources.Get . }} {{ if $authorImage }} - {{ $authorImage := $authorImage.Fill "288x288" }} + {{ if not $disableImageOptimization }} + {{ $authorImage = $authorImage.Fill "288x288" }} + {{ end }} {{ $.Site.Author.name | default {{ end }} diff --git a/layouts/partials/home/hero.html b/layouts/partials/home/hero.html index d3c2aaec..c9a09c42 100644 --- a/layouts/partials/home/hero.html +++ b/layouts/partials/home/hero.html @@ -1,3 +1,4 @@ +{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
@@ -18,7 +19,9 @@ {{ with .Site.Author.image }} {{ $authorImage := resources.Get . }} {{ if $authorImage }} - {{ $authorImage := $authorImage.Fill "288x288" }} + {{ if not $disableImageOptimization }} + {{ $authorImage = $authorImage.Fill "288x288" }} + {{ end }} {{ $.Site.Author.name | default {{ end }} diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html index 98b9e04a..7ba08a7e 100644 --- a/layouts/partials/home/profile.html +++ b/layouts/partials/home/profile.html @@ -1,3 +1,4 @@ +{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}