From: Danilo M. Date: Sun, 5 Apr 2026 07:37:34 +0000 (+0200) Subject: fix: use .InnerDeindent in figure shortcode X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=fcf2f6f50ce06e9d2e8e49b7a3c1095169a43076;p=danix2-hugo-theme.git 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 --- 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") -}}