Omit div with no attrs
This commit is contained in:
@@ -67,16 +67,20 @@
|
||||
{{ 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 }}>
|
||||
<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 }}>
|
||||
{{ if $table }}
|
||||
<div class="d-table">
|
||||
{{ end }}
|
||||
<div class="text-{{ $horizontal }}">{{ $content }}</div>
|
||||
{{ if $showcaption }}
|
||||
<figcaption class="figure-caption {{ with $gap }} mt-{{ . }} {{ end }} text-{{ $horizontal }}" {{ if $table }} style="caption-side: bottom; display: table-caption" {{ end }}>{{ $caption }}</figcaption>
|
||||
{{ end }}
|
||||
{{ if $table }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ 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 }}
|
||||
<div class="text-{{ $horizontal }}">{{ $content }}</div>
|
||||
{{ if $showcaption }}
|
||||
<figcaption class="figure-caption {{ with $gap }} mt-{{ . }} {{ end }} text-{{ $horizontal }}" {{ if $table }} style="caption-side: bottom; display: table-caption" {{ end }}>{{ $caption }}</figcaption>
|
||||
{{ end }}
|
||||
{{ if $table }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ if or $heightish $widthish (and (not $float) $style) }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</figure>
|
||||
|
Reference in New Issue
Block a user