Make blockquotes pretty
This commit is contained in:
parent
b628886038
commit
58c6b60c9e
|
@ -1,10 +1,11 @@
|
|||
{{ $quote := .Inner }}
|
||||
{{ $quote = replace $quote "<p>" "" }}
|
||||
{{ $quote = replace $quote "</p>" "" }}
|
||||
{{ $quote = safeHTML $quote }}
|
||||
|
||||
<blockquote class="blockquote">
|
||||
<p>{{ $quote }}</p>
|
||||
<p>
|
||||
{{ $quote | markdownify }}
|
||||
{{ with (.Get "author") }}
|
||||
<footer>{{ . }}</footer>
|
||||
<br>
|
||||
<span class="author">— {{ . }}</span>
|
||||
{{ end }}
|
||||
</p>
|
||||
</blockquote>
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue
Block a user