blog

My blog at www.shimmy1996.com

git clone git://git.shimmy1996.com/blog.git
commit 778a5d4c8ebde5a0a312a399bd59797c0a4248ce
parent e630e3f709663d2e52fcd3e1f8309f07fbd62013
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Wed,  8 Jan 2020 15:16:26 -0600

Correct typo and add styling for figcaption

Diffstat:
Mlayouts/partials/css/custom.css | 2+-
Mlayouts/shortcodes/figure.html | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/partials/css/custom.css b/layouts/partials/css/custom.css
@@ -10,7 +10,7 @@ textarea {
 h1 {
     font-size: 180%;
 }
-header nav {
+header nav, figcaption {
     margin-top: -1.5em;
     font-size: 90%;
 }
diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html
@@ -1,5 +1,5 @@
 {{ if .Get "caption" }}<figure>{{ end }}
 <img alt="{{ (.Get "alt") }}" src="{{ .Get "src" }}"/>
 {{- with .Get "caption" -}}
-<figurecaption><p>{{ . | replaceRE "Figure [0-9]*: " "" | markdownify }}</p></figurecaption></figure>
+<figcaption><p>{{ . | replaceRE "Figure [0-9]*: " "" | markdownify }}</p></figcaption></figure>
 {{ end }}