Render blockquotes in a figure
Render cite and caption too.
This commit is contained in:
parent
25eaca442c
commit
e04e7dafa3
5 changed files with 33 additions and 3 deletions
11
layouts/_default/_markup/render-blockquote.html
Normal file
11
layouts/_default/_markup/render-blockquote.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue