add 'quote' shortcode, + CSS
This commit is contained in:
parent
3a87abf65f
commit
46d02d8908
2 changed files with 19 additions and 0 deletions
|
@ -24,3 +24,14 @@ p {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// shortcode quote
|
||||||
|
|
||||||
|
.quote {
|
||||||
|
font-size: 90%;
|
||||||
|
padding-top: 1rem;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quote-author {
|
||||||
|
padding-top: 0.3rem;
|
||||||
|
}
|
8
layouts/shortcodes/quote.html
Normal file
8
layouts/shortcodes/quote.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<div class="text-right quote">
|
||||||
|
{{ markdownify .Inner }}
|
||||||
|
{{ with .Get "author" -}}
|
||||||
|
<div class="quote-author">
|
||||||
|
<em>{{ . }}</em>
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
</div>
|
Loading…
Add table
Reference in a new issue