Add height, width params to all shortcodes

This commit is contained in:
Will Faught
2023-01-13 16:40:44 -08:00
parent 5bb75fb8cb
commit c8e955bd36
5 changed files with 140 additions and 14 deletions

View File

@@ -87,15 +87,15 @@
{{ end }}
</figure>
{{ else if $float }}
{{ $margins := "" }}
{{ $margin := "" }}
{{ if eq $float "start" }}
{{ $margins = "me-4" }}
{{ $margin = "me-4" }}
{{ else if eq $float "end" }}
{{ $margins = "ms-4" }}
{{ $margin = "ms-4" }}
{{ else }}
{{ errorf "invalid float: %q" $float }}
{{ end }}
<figure class="d-table float-{{ $float }} {{ $margins }} paige-figure text-center" {{ with $style }} style="{{ . }}" {{ end }}>
<figure class="d-table float-{{ $float }} {{ $margin }} paige-figure text-center" {{ with $style }} style="{{ . | safeCSS }}" {{ end }}>
{{ $content }}
{{ with $caption }}
<figcaption class="figure-caption" style="caption-side: bottom; display: table-caption">{{ . }}</figcaption>