Remove gap param default

master
Will Faught 3 years ago
parent ed338a4ae5
commit 732f87e217

@ -3,7 +3,7 @@
{{ $compact := .compact }}
{{ $content := .content | markdownify }}
{{ $float := .float }}
{{ $gap := .gap | default "2" }}
{{ $gap := .gap }}
{{ $height := .height }}
{{ $maxheight := .maxheight }}
{{ $maxwidth := .maxwidth }}
@ -78,7 +78,7 @@
{{ end }}
<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>
<figcaption class="figure-caption {{ with $gap }} mt-{{ . }} {{ end }} text-{{ $align }}" {{ if $table }} style="caption-side: bottom; display: table-caption" {{ end }}>{{ . }}</figcaption>
{{ end }}
{{ if $table }}
</div>

@ -15,6 +15,7 @@
"caption" $caption
"content" $content
"float" $float
"gap" 2
"height" $height
"maxheight" $maxheight
"maxwidth" $maxwidth

@ -12,6 +12,7 @@
"caption" $caption
"content" $content
"float" $float
"gap" 2
"height" $height
"maxheight" $maxheight
"maxwidth" $maxwidth

@ -28,6 +28,7 @@
{{ partial "paige/image-figure.html" (dict
"caption" $caption
"compact" true
"gap" 2
"height" $height
"link" $link
"maxheight" $maxheight

@ -18,6 +18,7 @@
"alt" $alt
"caption" $caption
"float" $float
"gap" 2
"height" $height
"link" $link
"maxheight" $maxheight

@ -14,7 +14,6 @@
"caption" $caption
"content" $content
"float" $float
"gap" "0"
"height" $height
"maxheight" $maxheight
"maxwidth" $maxwidth

Loading…
Cancel
Save