Omit div with no attrs

master
Will Faught 2 years ago
parent da76f1f5fd
commit 98548e69f9

@ -67,7 +67,9 @@
{{ end }}
<figure class="{{ if $widthish }} d-flex {{ end }} {{ with $float }} float-{{ . }} {{ end }} {{ if $widthish }} justify-content-{{ $horizontal }} {{ end }} {{ if $compact }} mb-0 {{ end }} {{ if $float }} {{ $sidemargin }} {{ end }} paige-figure {{ if $numbered }} paige-figure-numbered {{ end }}" {{ if and $float $style }} style="{{ $style | safeCSS }}" {{ end }}>
{{ if or $heightish $widthish (and (not $float) $style) }}
<div {{ if or $heightish $widthish }} class="{{ if $height }} d-flex flex-column justify-content-{{ $vertical }} {{ end }} overflow-auto" {{ end }} {{ if and (not $float) $style }} style="{{ $style | safeCSS }}" {{ end }}>
{{ end }}
{{ if $table }}
<div class="d-table">
{{ end }}
@ -78,5 +80,7 @@
{{ if $table }}
</div>
{{ end }}
{{ if or $heightish $widthish (and (not $float) $style) }}
</div>
{{ end }}
</figure>

Loading…
Cancel
Save