{{ $cite := .Get 0 | default (.Get "cite") }}
{{ $content := .Inner | replaceRE "^\n" "" | replaceRE "\n$" "" | markdownify }}

{{ if not $content }}
    {{ errorf "paige/quote: no content" }}
{{ end }}

<div class="paige-quote">
    <blockquote class="blockquote">{{ $content }}</blockquote>

    {{ with $cite }}
        <div class="blockquote-footer">{{ . }}</div>
    {{ end }}
</div>
