From 0a27447f4b9a64d083698dddc3a3beec34692dcd Mon Sep 17 00:00:00 2001 From: Joe Hutchinson Date: Sat, 20 Jul 2019 20:12:50 -0400 Subject: [PATCH] Resize featured images to reduce file size --- layouts/_default/single.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 98e6292..d0e49de 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -14,8 +14,9 @@ {{ with $.Resources.GetMatch (replace (.Title) (path.Ext (.Title)) ".webp") -}} {{- end }} - - {{ . }} + {{ $featured := .Resize "800x Lanczos" }} + + {{ . }} {{ end }} {{ .Content }}