diff options
| author | Eltrac <hi@guhub.cn> | 2024-12-29 23:48:44 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2024-12-29 23:48:44 +0800 |
| commit | 2ee23ca9b05d2b1de5efdb725e3ed201a6fc91e7 (patch) | |
| tree | 788444310f1936712997aeca760354121f1b23d9 /layouts | |
| parent | cca49232295ca2f3abb02af32f015bc9500403db (diff) | |
fix(theme): parse image titles
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/shortcodes/img.html | 2 |
1 files changed, 1 insertions, 1 deletions
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" }}</a>{{ end }} {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr") }} <figcaption>{{ if isset .Params "title" }} - <h4>{{ .Get "title" }}</h4>{{ end }} + <h4>{{ .Get "title" | markdownify }}</h4>{{ end }} {{ if or (.Get "caption") (.Get "attr") }}<p> {{ .Get "caption" }} {{ with .Get "attrlink" }}<a href="{{ . }}"> {{ end }} |
