Add quote.html, figure-quote.md

This commit is contained in:
Will Faught
2023-01-06 21:06:35 -08:00
parent 954aa2946e
commit 84194f097c
2 changed files with 150 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
{{ $align := .Get "align" | default "center" }}
{{ $caption := .Get "caption" }}
{{ $cite := .Get 0 | default (.Get "cite") }}
{{ $caption = $caption | markdownify }}
{{ $cite = $cite | markdownify }}
{{ $content := .Inner | markdownify }}
<figure class="d-flex align-items-center flex-column paige-figure">
<div>
<blockquote class="blockquote {{ if $caption }} mb-2 {{ end }} text-{{ $align }}">{{ $content }}</blockquote>
{{ with $caption }}
<figcaption class="figure-caption text-center">{{ . }}</figcaption>
{{ end }}
{{ with $cite }}
<figcaption class="blockquote-footer figure-caption text-{{ $align }}">{{ . }}</figcaption>
{{ end }}
</div>
</figure>