Rename align, justify params to horizontal, vertical
parent
93428e20e3
commit
290cf41423
@ -1,29 +1,29 @@
|
||||
{{ $align := .Get "align" }}
|
||||
{{ $caption := .Get "caption" }}
|
||||
{{ $float := .Get "float" }}
|
||||
{{ $height := .Get "height" }}
|
||||
{{ $justify := .Get "justify" }}
|
||||
{{ $horizontal := .Get "horizontal" }}
|
||||
{{ $lang := .Get 0 | default (.Get "lang") | default "plaintext" }}
|
||||
{{ $maxheight := .Get "maxheight" }}
|
||||
{{ $maxwidth := .Get "maxwidth" }}
|
||||
{{ $number := .Get "number" }}
|
||||
{{ $numbered := .Get "numbered" }}
|
||||
{{ $options := .Get "options" }}
|
||||
{{ $vertical := .Get "vertical" }}
|
||||
{{ $width := .Get "width" }}
|
||||
|
||||
{{ $content := highlight (.Inner | replaceRE "^\n" "") $lang $options }}
|
||||
|
||||
{{ partial "paige/figure.html" (dict
|
||||
"align" $align
|
||||
"caption" $caption
|
||||
"content" $content
|
||||
"float" $float
|
||||
"gap" 2
|
||||
"height" $height
|
||||
"justify" $justify
|
||||
"horizontal" $horizontal
|
||||
"maxheight" $maxheight
|
||||
"maxwidth" $maxwidth
|
||||
"number" $number
|
||||
"numbered" $numbered
|
||||
"vertical" $vertical
|
||||
"width" $width
|
||||
) }}
|
||||
|
@ -1,26 +1,26 @@
|
||||
{{ $align := .Get "align" }}
|
||||
{{ $caption := .Get 0 | default (.Get "caption") }}
|
||||
{{ $content := .Inner }}
|
||||
{{ $float := .Get "float" }}
|
||||
{{ $height := .Get "height" }}
|
||||
{{ $justify := .Get "justify" }}
|
||||
{{ $horizontal := .Get "horizontal" }}
|
||||
{{ $maxheight := .Get "maxheight" }}
|
||||
{{ $maxwidth := .Get "maxwidth" }}
|
||||
{{ $number := .Get "number" }}
|
||||
{{ $numbered := .Get "numbered" }}
|
||||
{{ $vertical := .Get "vertical" }}
|
||||
{{ $width := .Get "width" }}
|
||||
|
||||
{{ partial "paige/figure.html" (dict
|
||||
"align" $align
|
||||
"caption" $caption
|
||||
"content" $content
|
||||
"float" $float
|
||||
"gap" 2
|
||||
"height" $height
|
||||
"justify" $justify
|
||||
"horizontal" $horizontal
|
||||
"maxheight" $maxheight
|
||||
"maxwidth" $maxwidth
|
||||
"number" $number
|
||||
"numbered" $numbered
|
||||
"vertical" $vertical
|
||||
"width" $width
|
||||
) }}
|
||||
|
@ -1,27 +1,27 @@
|
||||
{{ $align := .Get "align" }}
|
||||
{{ $caption := .Get 0 | default (.Get "caption") }}
|
||||
{{ $content := .Inner | replaceRE "^\n" "" | replaceRE "\n$" "" }}
|
||||
{{ $float := .Get "float" }}
|
||||
{{ $height := .Get "height" }}
|
||||
{{ $justify := .Get "justify" }}
|
||||
{{ $horizontal := .Get "horizontal" }}
|
||||
{{ $maxheight := .Get "maxheight" }}
|
||||
{{ $maxwidth := .Get "maxwidth" }}
|
||||
{{ $number := .Get "number" }}
|
||||
{{ $numbered := .Get "numbered" }}
|
||||
{{ $vertical := .Get "vertical" }}
|
||||
{{ $width := .Get "width" }}
|
||||
|
||||
{{ $content = printf `<blockquote class="blockquote mb-0">%v</blockquote>` $content }}
|
||||
|
||||
{{ partial "paige/figure.html" (dict
|
||||
"align" $align
|
||||
"caption" $caption
|
||||
"content" $content
|
||||
"float" $float
|
||||
"height" $height
|
||||
"justify" $justify
|
||||
"horizontal" $horizontal
|
||||
"maxheight" $maxheight
|
||||
"maxwidth" $maxwidth
|
||||
"number" $number
|
||||
"numbered" $numbered
|
||||
"vertical" $vertical
|
||||
"width" $width
|
||||
) }}
|
||||
|
Loading…
Reference in New Issue