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>
|
||||||
|
{{ $quote | markdownify }}
|
||||||
{{ with (.Get "author") }}
|
{{ with (.Get "author") }}
|
||||||
<footer>{{ . }}</footer>
|
<br>
|
||||||
|
<span class="author">— {{ . }}</span>
|
||||||
{{ end }}
|
{{ 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