cupper-hugo-theme/layouts/shortcodes/blockquote.html
2019-02-12 16:25:13 -06:00

10 lines
268 B
HTML

{{ $quote := .Inner }}
{{ $quote = replace $quote "<p>" "" }}
{{ $quote = replace $quote "</p>" "" }}
{{ $quote = safeHTML $quote }}
<blockquote class="blockquote">
<p>{{ $quote }}</p>
{{ with (.Get "author") }}
<footer>{{ . }}</footer>
{{ end }}
</blockquote>