You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
482 B
HTML
17 lines
482 B
HTML
{{ $cite := .Get 0 | default (.Get "cite") }}
|
|
{{ $content := .Inner | replaceRE "^\n" "" | replaceRE "\n$" "" | markdownify }}
|
|
|
|
{{ if not $content }}
|
|
{{ errorf "layouts/shortcodes/paige/quote.html: no content" }}
|
|
{{ end }}
|
|
|
|
{{/* The markup below cannot be indented due to nested shortcodes within Markdown. */}}
|
|
|
|
<div class="paige-quote">
|
|
<blockquote class="blockquote">{{ $content }}</blockquote>
|
|
|
|
{{ with $cite }}
|
|
<div class="blockquote-footer">{{ . }}</div>
|
|
{{ end }}
|
|
</div>
|