cupper-hugo-theme/layouts/shortcodes/blockquote.html

10 lines
268 B
HTML
Raw Normal View History

{{ $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>