Render blockquotes in a figure

Render cite and caption too.
This commit is contained in:
Eryn Wells 2024-11-06 09:31:16 -08:00
parent 25eaca442c
commit e04e7dafa3
5 changed files with 33 additions and 3 deletions

View file

@ -0,0 +1,11 @@
<figure class="figure figure--main-column figure--blockquote">
<blockquote
{{- with .Attributes.cite }} cite="{{ . }}"{{ end -}}>
{{ .Text }}
</blockquote>
{{ with .Attributes.caption }}
<figcaption class="figure__caption--blockquote">
{{ . | safeHTML }}
</figcaption>
{{ end }}
</figure>