From 3377517655c247c28bd3d0cde322d973e14b874d Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Tue, 5 Mar 2024 19:15:36 +0100 Subject: [PATCH] Fix layout to compile with latest hugo version --- themes/tsc_vfl/layouts/shortcodes/tsc/press/dld.html | 2 +- themes/tsc_vfl/layouts/shortcodes/tsc/press/img.html | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/themes/tsc_vfl/layouts/shortcodes/tsc/press/dld.html b/themes/tsc_vfl/layouts/shortcodes/tsc/press/dld.html index dc71bcf..844489d 100644 --- a/themes/tsc_vfl/layouts/shortcodes/tsc/press/dld.html +++ b/themes/tsc_vfl/layouts/shortcodes/tsc/press/dld.html @@ -1,7 +1,7 @@ -{{ $res := page.Resources.GetMatch (.Get "url") }} +{{ $res := .Page.Resources.GetMatch (.Get "url") }} {{ .Inner }} diff --git a/themes/tsc_vfl/layouts/shortcodes/tsc/press/img.html b/themes/tsc_vfl/layouts/shortcodes/tsc/press/img.html index 9550210..9972683 100644 --- a/themes/tsc_vfl/layouts/shortcodes/tsc/press/img.html +++ b/themes/tsc_vfl/layouts/shortcodes/tsc/press/img.html @@ -1,7 +1,11 @@
- {{- $res := page.Resources.GetMatch (.Get "src") -}} + {{- $res := .Page.Resources.GetMatch (.Get "src") -}}