diff --git a/themes/tsc_vfl/layouts/_default/home.html b/themes/tsc_vfl/layouts/_default/home.html index 310a6d8..0cea6e0 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 }}