@@ -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 }}
{{ 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 }}
{{ 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 }}