From 46d02d89083609ddd7b97ee122b07d93d8819f0d Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Mon, 7 Sep 2020 14:08:40 +0200 Subject: [PATCH] add 'quote' shortcode, + CSS --- assets/sass/_custom.scss | 11 +++++++++++ layouts/shortcodes/quote.html | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 layouts/shortcodes/quote.html diff --git a/assets/sass/_custom.scss b/assets/sass/_custom.scss index 7913407..f813ab0 100644 --- a/assets/sass/_custom.scss +++ b/assets/sass/_custom.scss @@ -24,3 +24,14 @@ p { font-weight: bold; } +// shortcode quote + +.quote { + font-size: 90%; + padding-top: 1rem; + padding-bottom: 1rem; +} + +.quote-author { + padding-top: 0.3rem; +} \ No newline at end of file diff --git a/layouts/shortcodes/quote.html b/layouts/shortcodes/quote.html new file mode 100644 index 0000000..7e6efa1 --- /dev/null +++ b/layouts/shortcodes/quote.html @@ -0,0 +1,8 @@ +
+{{ markdownify .Inner }} + {{ with .Get "author" -}} +
+ {{ . }} +
+{{- end }} +