Group local variables

This commit is contained in:
Will Faught
2023-01-22 23:27:28 -08:00
parent 95a5a23af4
commit 81247b852a

View File

@@ -12,14 +12,17 @@
{{ $vertical := .vertical | default "center" }}
{{ $width := .width }}
{{ $heightish := or $maxheight $height }}
{{ $showcaption := $caption }}
{{ $sidemargin := "" }}
{{ $style := slice }}
{{ $table := false }}
{{ $widthish := or $maxwidth $width }}
{{ if and $caption (or $compact $float) }}
{{ $table = true }}
{{ end }}
{{ $style := slice }}
{{ if $height }}
{{ $style = $style | append (printf "height: %v" $height) }}
{{ end }}
@@ -38,8 +41,6 @@
{{ $style = delimit ($style | sort | uniq) "; " }}
{{ $sidemargin := "" }}
{{ if $float }}
{{ if eq $float "start" }}
{{ $sidemargin = "me-4" }}
@@ -50,8 +51,6 @@
{{ end }}
{{ end }}
{{ $showcaption := $caption }}
{{ if $caption }}
{{ if $number }}
{{ $caption = printf "%v %v: %v" (i18n "paige_figure") $number $caption }}