Files
paige-hugo/layouts/shortcodes/paige/quote.html
2023-09-15 23:44:56 -07:00

15 lines
424 B
HTML

{{ $cite := .Get 0 | default (.Get "cite") }}
{{ $content := .Inner | replaceRE "^\n" "" | replaceRE "\n$" "" | markdownify | safeHTML }}
{{ if not $content }}
{{ errorf "layouts/shortcodes/paige/quote.html: no content" }}
{{ end }}
<div class="paige-quote">
<blockquote class="blockquote">{{ $content }}</blockquote>
{{ with $cite }}
<div class="blockquote-footer">{{ . }}</div>
{{ end }}
</div>