From 44cb516ff6c6a7dde18ca3e7bca8881962457829 Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Fri, 21 Feb 2025 23:17:58 +0100 Subject: [PATCH] render chart caption templates --- layouts/shortcodes/chart.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/chart.html b/layouts/shortcodes/chart.html index 970729b..5dffc48 100644 --- a/layouts/shortcodes/chart.html +++ b/layouts/shortcodes/chart.html @@ -32,7 +32,7 @@ {{- if or ( .Get "caption" ) ( .Get "title" ) -}}
{{- with .Get "title" -}}

{{ . | markdownify | safeHTML }}

{{- end -}} - {{- with .Get "caption" -}}

{{ . | markdownify | safeHTML }}

{{- end -}} + {{- with .Get "caption" -}}

{{ . | $.Page.RenderString }}

{{- end -}}
{{- end -}}