diff --git a/layouts/partials/css/academic.css b/layouts/partials/css/academic.css index 60122a42..3f5602e2 100644 --- a/layouts/partials/css/academic.css +++ b/layouts/partials/css/academic.css @@ -159,7 +159,7 @@ figcaption.numbered { } figcaption h4 { - display: inline-block; + display: inline; font-size: 1rem; font-weight: 400; margin: 0; diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index a746ebc8..ded982e8 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -1,13 +1,13 @@ {{ if .Get "link"}}{{ end }} - + {{ if .Get "link"}}{{ end }} {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}} {{ $figure := split (i18n "figure" | default "Figure %d:") "%d" }}
{{ if isset .Params "title" }} -

{{ .Get "title" }}

{{ end }} +

{{ .Get "title" | markdownify | emojify }}

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

- {{ .Get "caption" }} + {{ .Get "caption" | markdownify | emojify }} {{ with .Get "attrlink"}} {{ end }} {{ .Get "attr" }} {{ if .Get "attrlink"}} {{ end }}