From 09674dd538d2537440fccf9b3382f749763d2167 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sat, 21 Apr 2018 23:19:43 +0100 Subject: [PATCH] figure shortcode: Fix caption style See #328 --- layouts/partials/css/academic.css | 2 +- layouts/shortcodes/figure.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 }}