Remove gap param default
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
{{ $compact := .compact }}
|
{{ $compact := .compact }}
|
||||||
{{ $content := .content | markdownify }}
|
{{ $content := .content | markdownify }}
|
||||||
{{ $float := .float }}
|
{{ $float := .float }}
|
||||||
{{ $gap := .gap | default "2" }}
|
{{ $gap := .gap }}
|
||||||
{{ $height := .height }}
|
{{ $height := .height }}
|
||||||
{{ $maxheight := .maxheight }}
|
{{ $maxheight := .maxheight }}
|
||||||
{{ $maxwidth := .maxwidth }}
|
{{ $maxwidth := .maxwidth }}
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="text-{{ $align }}">{{ $content }}</div>
|
<div class="text-{{ $align }}">{{ $content }}</div>
|
||||||
{{ with $caption }}
|
{{ 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 }}
|
{{ end }}
|
||||||
{{ if $table }}
|
{{ if $table }}
|
||||||
</div>
|
</div>
|
||||||
|
@@ -15,6 +15,7 @@
|
|||||||
"caption" $caption
|
"caption" $caption
|
||||||
"content" $content
|
"content" $content
|
||||||
"float" $float
|
"float" $float
|
||||||
|
"gap" 2
|
||||||
"height" $height
|
"height" $height
|
||||||
"maxheight" $maxheight
|
"maxheight" $maxheight
|
||||||
"maxwidth" $maxwidth
|
"maxwidth" $maxwidth
|
||||||
|
@@ -12,6 +12,7 @@
|
|||||||
"caption" $caption
|
"caption" $caption
|
||||||
"content" $content
|
"content" $content
|
||||||
"float" $float
|
"float" $float
|
||||||
|
"gap" 2
|
||||||
"height" $height
|
"height" $height
|
||||||
"maxheight" $maxheight
|
"maxheight" $maxheight
|
||||||
"maxwidth" $maxwidth
|
"maxwidth" $maxwidth
|
||||||
|
@@ -28,6 +28,7 @@
|
|||||||
{{ partial "paige/image-figure.html" (dict
|
{{ partial "paige/image-figure.html" (dict
|
||||||
"caption" $caption
|
"caption" $caption
|
||||||
"compact" true
|
"compact" true
|
||||||
|
"gap" 2
|
||||||
"height" $height
|
"height" $height
|
||||||
"link" $link
|
"link" $link
|
||||||
"maxheight" $maxheight
|
"maxheight" $maxheight
|
||||||
|
@@ -18,6 +18,7 @@
|
|||||||
"alt" $alt
|
"alt" $alt
|
||||||
"caption" $caption
|
"caption" $caption
|
||||||
"float" $float
|
"float" $float
|
||||||
|
"gap" 2
|
||||||
"height" $height
|
"height" $height
|
||||||
"link" $link
|
"link" $link
|
||||||
"maxheight" $maxheight
|
"maxheight" $maxheight
|
||||||
|
@@ -14,7 +14,6 @@
|
|||||||
"caption" $caption
|
"caption" $caption
|
||||||
"content" $content
|
"content" $content
|
||||||
"float" $float
|
"float" $float
|
||||||
"gap" "0"
|
|
||||||
"height" $height
|
"height" $height
|
||||||
"maxheight" $maxheight
|
"maxheight" $maxheight
|
||||||
"maxwidth" $maxwidth
|
"maxwidth" $maxwidth
|
||||||
|
Reference in New Issue
Block a user