summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-05-27 01:24:34 +0800
committerReorx <novoreorx@gmail.com>2022-05-27 01:24:34 +0800
commitb2151271868f9b57c930269562bc02884be3cb34 (patch)
tree458b809b84d64ae7802cffeee426754370994f0f
parent8502ea49d4435527789f37efabffab1a46bc86c5 (diff)
add figure-img shortcode
-rw-r--r--layouts/shortcodes/figure-img.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/shortcodes/figure-img.html b/layouts/shortcodes/figure-img.html
new file mode 100644
index 0000000..49057c8
--- /dev/null
+++ b/layouts/shortcodes/figure-img.html
@@ -0,0 +1,5 @@
+<figure class="center align-center">
+ {{ .Inner | markdownify }}
+
+ <figcaption><p>{{ .Get 0 | markdownify }}</p></figcaption>
+</figure>