Align figure content

This commit is contained in:
Will Faught
2023-01-15 22:10:55 -08:00
parent c3189dfca9
commit ab91a710e1
3 changed files with 44 additions and 4 deletions

View File

@@ -82,7 +82,7 @@
{{ if $table }}
<div class="d-table">
{{ end }}
<div>{{ $content }}</div>
<div class="text-{{ $align }}">{{ $content }}</div>
{{ with $caption }}
<figcaption class="figure-caption mt-{{ $gap }} text-{{ $align }}" {{ if $table }} style="caption-side: bottom; display: table-caption" {{ end }}>{{ . }}</figcaption>
{{ end }}

View File

@@ -7,7 +7,7 @@
{{ $maxwidth := .Get "maxwidth" }}
{{ $width := .Get "width" }}
{{ $content = printf `<blockquote class="blockquote mb-0 text-%v">%v</blockquote>` $align $content | safeHTML }}
{{ $content = printf `<blockquote class="blockquote mb-0">%v</blockquote>` $content | safeHTML }}
{{ partial "paige/figure.html" (dict
"align" $align