From 73bea50756c510472f548c0d949c5b0f0ca750ee Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 3 Jan 2022 14:52:13 +0000 Subject: [PATCH] Reduce size of images on list page It maxes out at ~220 anyway, and 200 is how large the unsplash images are anyway --- layouts/partials/list_item.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/list_item.html b/layouts/partials/list_item.html index e32708c..e143830 100644 --- a/layouts/partials/list_item.html +++ b/layouts/partials/list_item.html @@ -5,7 +5,7 @@ {{ .Scratch.Set "image" .Params.image }} {{ if hasPrefix .Params.image "resource:" }} {{ $resource := .Resources.GetMatch (replace .Params.image "resource:" "") }} - {{ .Scratch.Set "image" ($resource.Resize "500x webp").RelPermalink }} + {{ .Scratch.Set "image" ($resource.Resize "200x webp").RelPermalink }} {{ else if hasPrefix .Params.image "unsplash:" }} {{ $unsplash_id := replace .Params.image "unsplash:" "" }} {{ $query := querify "client_id" (getenv "UNSPLASH_ACCESS_KEY") }}