aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-05-09 19:59:41 -0400
committertdro <tdro@noreply.example.com>2022-05-09 19:59:41 -0400
commit88c34fdcc13bcc68c52afa325fb036f81345fbb5 (patch)
treee25f35421c804ed91f876354c60704d9bbb7a1c4 /themes
parent2e857640a00fc55ac3db0537158e982c39d2a92f (diff)
downloadcanory-88c34fdcc13bcc68c52afa325fb036f81345fbb5.tar.gz
canory-88c34fdcc13bcc68c52afa325fb036f81345fbb5.tar.bz2
canory-88c34fdcc13bcc68c52afa325fb036f81345fbb5.zip
themes/default/layouts/shortcodes: Add span footer for block quote
Diffstat (limited to 'themes')
-rw-r--r--themes/default/layouts/shortcodes/footer.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/themes/default/layouts/shortcodes/footer.html b/themes/default/layouts/shortcodes/footer.html
new file mode 100644
index 0000000..579913d
--- /dev/null
+++ b/themes/default/layouts/shortcodes/footer.html
@@ -0,0 +1,7 @@
+{{- $text := default "Block Quote" (.Get "text" | default (.Get 0)) -}}
+
+{{- if gt (len .Inner) 1 -}}
+ {{ $text = .Inner }}
+{{- end -}}
+
+<span>{{ $text | markdownify }}</span>