add 'quote' shortcode, + CSS

This commit is contained in:
Helmut Merz 2020-09-07 14:08:40 +02:00
parent 3a87abf65f
commit 46d02d8908
2 changed files with 19 additions and 0 deletions

View file

@ -24,3 +24,14 @@ p {
font-weight: bold;
}
// shortcode quote
.quote {
font-size: 90%;
padding-top: 1rem;
padding-bottom: 1rem;
}
.quote-author {
padding-top: 0.3rem;
}

View file

@ -0,0 +1,8 @@
<div class="text-right quote">
{{ markdownify .Inner }}
{{ with .Get "author" -}}
<div class="quote-author">
<em>{{ . }}</em>
</div>
{{- end }}
</div>