Make blockquotes pretty
This commit is contained in:
parent
b628886038
commit
58c6b60c9e
|
@ -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">— {{ . }}</span>
|
||||||
|
{{ end }}
|
||||||
|
</p>
|
||||||
</blockquote>
|
</blockquote>
|
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user