From b5184f0ca7c6d29c3fdb204e92c0a53b0ca4ddec Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sun, 4 Dec 2022 11:05:38 -0500 Subject: [PATCH] enable image processing for primary images on site ; this reduces page size by a factor of at least 10 --- themes/gochowdown/layouts/notes/single.html | 6 +++++- themes/gochowdown/layouts/partials/home.html | 10 +++------- themes/gochowdown/layouts/recipes/single.html | 6 +++++- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/themes/gochowdown/layouts/notes/single.html b/themes/gochowdown/layouts/notes/single.html index 7b094d2..01bdcc2 100644 --- a/themes/gochowdown/layouts/notes/single.html +++ b/themes/gochowdown/layouts/notes/single.html @@ -53,7 +53,11 @@ {{ if .Params.image }}
- + {{ with .Resources.GetMatch .Params.Image }} + {{ with .Fit "1000x1000" }} + + {{ end }} + {{ end }} {{ if .Params.imagecaption }}

Pictured: {{ .Params.imagecaption }}

{{ end }} diff --git a/themes/gochowdown/layouts/partials/home.html b/themes/gochowdown/layouts/partials/home.html index 6d7bd8c..5b73194 100644 --- a/themes/gochowdown/layouts/partials/home.html +++ b/themes/gochowdown/layouts/partials/home.html @@ -5,14 +5,10 @@