From 43b55ef8dd335eff43d1a79a6db6219dd2b8e04d Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Wed, 10 Jul 2024 11:41:22 +0200 Subject: [PATCH] Fix home page to allow for global assets in thumbnails as well --- themes/tsc_vfl/layouts/_default/home.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/themes/tsc_vfl/layouts/_default/home.html b/themes/tsc_vfl/layouts/_default/home.html index 310a6d83..0cea6e02 100644 --- a/themes/tsc_vfl/layouts/_default/home.html +++ b/themes/tsc_vfl/layouts/_default/home.html @@ -14,9 +14,14 @@
{{ $page := . }} {{ if .Params.Image }} - {{ with (.Resources.GetMatch (.Params.Image)).Fit "290x190 webp" }} + {{ $resImage := resources.GetMatch (.Params.Image) }} + {{ with .Resources.GetMatch (.Params.Image) }} + {{ $resImage = . }} + {{ end }} + {{/* {{ with ($resImage).Fit "290x190 webp" }} */}} + {{ with $resImage }} - + {{ end }} {{ end }}