From 2ee23ca9b05d2b1de5efdb725e3ed201a6fc91e7 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Sun, 29 Dec 2024 23:48:44 +0800 Subject: fix(theme): parse image titles --- layouts/shortcodes/img.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/shortcodes') diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 8bf45ad4..b33e661d 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -7,7 +7,7 @@ {{ if .Get "link" }}{{ end }} {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr") }}
{{ if isset .Params "title" }} -

{{ .Get "title" }}

{{ end }} +

{{ .Get "title" | markdownify }}

{{ end }} {{ if or (.Get "caption") (.Get "attr") }}

{{ .Get "caption" }} {{ with .Get "attrlink" }} {{ end }} -- cgit v1.2.3