Remove height param
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
{{ $content := $params.content | markdownify }}
|
||||
{{ $float := $params.float }}
|
||||
{{ $gap := $params.gap }}
|
||||
{{ $height := $params.height }}
|
||||
{{ $horizontal := $params.horizontal | default "center" }}
|
||||
{{ $maxwidth := $params.maxwidth }}
|
||||
{{ $number := $params.number }}
|
||||
@@ -13,7 +12,6 @@
|
||||
{{ $vertical := $params.vertical | default "center" }}
|
||||
{{ $width := $params.width }}
|
||||
|
||||
{{ $heights := slice }}
|
||||
{{ $showcaption := $caption }}
|
||||
{{ $sidemargin := "" }}
|
||||
{{ $table := false }}
|
||||
@@ -23,12 +21,6 @@
|
||||
{{ $table = true }}
|
||||
{{ end }}
|
||||
|
||||
{{ if $height }}
|
||||
{{ $heights = $heights | append (printf "height: %v" $height) }}
|
||||
{{ end }}
|
||||
|
||||
{{ $heights = delimit ($heights | sort) "; " }}
|
||||
|
||||
{{ if $maxwidth }}
|
||||
{{ $widths = $widths | append (printf "max-width: %v" $maxwidth) }}
|
||||
{{ end }}
|
||||
@@ -62,7 +54,7 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<div class="align-items-{{ $vertical }} d-flex {{ with $float }} float-{{ . }} {{ end }} justify-content-{{ $horizontal }} {{ if $compact }} mb-0 {{ else }} mb-3 {{ end }} {{ with $sidemargin }} {{ . }} {{ end }} overflow-auto paige-figure {{ if $numbered }} paige-figure-numbered {{ end }}" {{ with $heights }} style="{{ . | safeCSS }}" {{ end }}>
|
||||
<div class="align-items-{{ $vertical }} d-flex {{ with $float }} float-{{ . }} {{ end }} justify-content-{{ $horizontal }} {{ if $compact }} mb-0 {{ else }} mb-3 {{ end }} {{ with $sidemargin }} {{ . }} {{ end }} overflow-auto paige-figure {{ if $numbered }} paige-figure-numbered {{ end }}">
|
||||
<figure class="{{ if $table }} d-table {{ end }} mb-0" {{ with $widths }} style="{{ . | safeCSS }}" {{ end }}>
|
||||
<div class="d-flex justify-content-{{ $horizontal }} text-{{ $horizontal }}">{{ $content }}</div>
|
||||
|
||||
|
@@ -4,7 +4,6 @@
|
||||
{{ $caption := $params.caption }}
|
||||
{{ $compact := $params.compact }}
|
||||
{{ $float := $params.float }}
|
||||
{{ $height := $params.height }}
|
||||
{{ $horizontal := $params.horizontal }}
|
||||
{{ $link := $params.link }}
|
||||
{{ $maxwidth := $params.maxwidth }}
|
||||
@@ -44,7 +43,6 @@
|
||||
"compact" $compact
|
||||
"content" $content
|
||||
"float" $float
|
||||
"height" $height
|
||||
"horizontal" $horizontal
|
||||
"maxwidth" $maxwidth
|
||||
"number" $number
|
||||
|
@@ -1,7 +1,6 @@
|
||||
{{ $caption := .Get 0 | default (.Get "caption") }}
|
||||
{{ $content := .Inner }}
|
||||
{{ $float := .Get "float" }}
|
||||
{{ $height := .Get "height" }}
|
||||
{{ $horizontal := .Get "horizontal" }}
|
||||
{{ $maxwidth := .Get "maxwidth" }}
|
||||
{{ $number := .Get "number" }}
|
||||
@@ -14,7 +13,6 @@
|
||||
"content" $content
|
||||
"float" $float
|
||||
"gap" 2
|
||||
"height" $height
|
||||
"horizontal" $horizontal
|
||||
"maxwidth" $maxwidth
|
||||
"number" $number
|
||||
|
@@ -121,17 +121,17 @@
|
||||
"caption" $caption
|
||||
"content" (partial "paige/video.html" (dict
|
||||
"fullscreen" $fullscreen
|
||||
"height" $height
|
||||
"referrerpolicy" $referrerpolicy
|
||||
"src" $src
|
||||
"title" $description
|
||||
"width" $width
|
||||
))
|
||||
"float" $float
|
||||
"gap" 2
|
||||
"height" $height
|
||||
"horizontal" $horizontal
|
||||
"maxwidth" $maxwidth
|
||||
"number" $number
|
||||
"numbered" $numbered
|
||||
"vertical" $vertical
|
||||
"width" $width
|
||||
) }}
|
||||
|
@@ -75,17 +75,17 @@
|
||||
"caption" $caption
|
||||
"content" (partial "paige/video.html" (dict
|
||||
"fullscreen" $fullscreen
|
||||
"height" $height
|
||||
"referrerpolicy" $referrerpolicy
|
||||
"src" $src
|
||||
"title" $description
|
||||
"width" $width
|
||||
))
|
||||
"float" $float
|
||||
"gap" 2
|
||||
"height" $height
|
||||
"horizontal" $horizontal
|
||||
"maxwidth" $maxwidth
|
||||
"number" $number
|
||||
"numbered" $numbered
|
||||
"vertical" $vertical
|
||||
"width" $width
|
||||
) }}
|
||||
|
Reference in New Issue
Block a user