From 979e2ce00eee46f38ca0e7a3481ff88c80a881df Mon Sep 17 00:00:00 2001 From: williamvds Date: Thu, 13 Jan 2022 19:12:08 +0000 Subject: [PATCH] Style blockquotes and add quote shortcode --- sass/site.sass | 13 +++++++++++++ templates/shortcodes/quote.html | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 templates/shortcodes/quote.html diff --git a/sass/site.sass b/sass/site.sass index 4006b52..075a914 100644 --- a/sass/site.sass +++ b/sass/site.sass @@ -80,6 +80,19 @@ pre code padding: 0 +blockquote + border-left: $line-width solid $fg + font-style: italic + padding-left: $space-small + + margin: $space-medium $space-large + + @media (max-width: $small-thresh) + margin: $space-large 0 + + .source + font-style: normal + .iconlink display: inline-block diff --git a/templates/shortcodes/quote.html b/templates/shortcodes/quote.html new file mode 100644 index 0000000..cbd7155 --- /dev/null +++ b/templates/shortcodes/quote.html @@ -0,0 +1,4 @@ +
+ {{ body | markdown | safe }} + {{ source }} +
-- 2.45.2