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