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 := .Inner }}
{{ $quote = replace $quote "<p>" "" }}
{{ $quote = replace $quote "</p>" "" }}
{{ $quote = safeHTML $quote }}
<blockquote class="blockquote"> <blockquote class="blockquote">
<p>{{ $quote }}</p> <p>
{{ with (.Get "author") }} {{ $quote | markdownify }}
<footer>{{ . }}</footer> {{ with (.Get "author") }}
{{ end }} <br>
<span class="author">&mdash; {{ . }}</span>
{{ end }}
</p>
</blockquote> </blockquote>

View File

@ -195,8 +195,11 @@ dd li + li {
/* Blockquotes */ /* Blockquotes */
blockquote { blockquote {
border-left: 0.5rem solid;
padding-left: 0.75rem;
}
blockquote .author {
font-size: 0.85rem; font-size: 0.85rem;
font-style: italic;
} }
/* Buttons */ /* Buttons */