From 58c6b60c9e578ead0580da3bc97f30e72383d194 Mon Sep 17 00:00:00 2001 From: Zachary Betz Date: Wed, 13 Feb 2019 15:17:53 -0600 Subject: [PATCH] Make blockquotes pretty --- layouts/shortcodes/blockquote.html | 15 ++++++++------- static/css/styles.css | 5 ++++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/layouts/shortcodes/blockquote.html b/layouts/shortcodes/blockquote.html index f43b612..7bc9551 100644 --- a/layouts/shortcodes/blockquote.html +++ b/layouts/shortcodes/blockquote.html @@ -1,10 +1,11 @@ {{ $quote := .Inner }} -{{ $quote = replace $quote "

" "" }} -{{ $quote = replace $quote "

" "" }} -{{ $quote = safeHTML $quote }} +
-

{{ $quote }}

- {{ with (.Get "author") }} -
{{ . }}
- {{ end }} +

+ {{ $quote | markdownify }} + {{ with (.Get "author") }} +
+ — {{ . }} + {{ end }} +

\ No newline at end of file diff --git a/static/css/styles.css b/static/css/styles.css index 33fdbb5..ef7438c 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -195,8 +195,11 @@ dd li + li { /* Blockquotes */ blockquote { + border-left: 0.5rem solid; + padding-left: 0.75rem; +} +blockquote .author { font-size: 0.85rem; - font-style: italic; } /* Buttons */