Make blockquotes pretty

This commit is contained in:
Zachary Betz 2019-02-13 15:17:53 -06:00
parent b628886038
commit 58c6b60c9e
2 changed files with 12 additions and 8 deletions

View File

@ -1,10 +1,11 @@
{{ $quote := .Inner }}
{{ $quote = replace $quote "<p>" "" }}
{{ $quote = replace $quote "</p>" "" }}
{{ $quote = safeHTML $quote }}
<blockquote class="blockquote">
<p>{{ $quote }}</p>
{{ with (.Get "author") }}
<footer>{{ . }}</footer>
{{ end }}
<p>
{{ $quote | markdownify }}
{{ with (.Get "author") }}
<br>
<span class="author">&mdash; {{ . }}</span>
{{ end }}
</p>
</blockquote>

View File

@ -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 */