From fcf2f6f50ce06e9d2e8e49b7a3c1095169a43076 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 5 Apr 2026 09:37:34 +0200 Subject: fix: use .InnerDeindent in figure shortcode Changed from .Inner to .InnerDeindent to properly evaluate and dedent inner content when a closing tag is provided. This fixes the Hugo error: 'shortcode "figure" does not evaluate .Inner or .InnerDeindent' Co-Authored-By: Claude Haiku 4.5 --- layouts/shortcodes/figure.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/shortcodes/figure.html') diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 81f86de..4cf2e7b 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -7,7 +7,7 @@ {{- if .Get "link" -}} {{- end -}} - {{- .Inner -}} + {{.InnerDeindent}} {{- if .Get "link" }}{{ end -}} {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}}
-- cgit v1.2.3