Add format param
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{{ $align := .Get "align" | default "center" }}
|
||||
{{ $format := .Get "format" }}
|
||||
{{ $height := .Get "height" }}
|
||||
{{ $images := .Get 0 | default (.Get "images") }}
|
||||
{{ $justify := .Get "justify" | default "center" }}
|
||||
@@ -44,6 +45,7 @@
|
||||
{{ partial "paige/a.html" (dict
|
||||
"content" (partial "paige/img.html" (dict
|
||||
"class" "img-fluid"
|
||||
"format" $format
|
||||
"height" $height
|
||||
"maxheight" $maxheight
|
||||
"maxwidth" $maxwidth
|
||||
@@ -68,6 +70,7 @@
|
||||
{{ partial "paige/a.html" (dict
|
||||
"content" (partial "paige/img.html" (dict
|
||||
"class" "img-fluid"
|
||||
"format" $format
|
||||
"height" $height
|
||||
"maxheight" $maxheight
|
||||
"maxwidth" $maxwidth
|
||||
|
@@ -1,5 +1,6 @@
|
||||
{{ $alt := .Get "alt" }}
|
||||
{{ $content := .Inner | replaceRE "^\n" "" | replaceRE "\n$" "" | markdownify }}
|
||||
{{ $format := .Get "format" }}
|
||||
{{ $header := .Get "header" | markdownify }}
|
||||
{{ $height := .Get "height" }}
|
||||
{{ $image := .Get "image" }}
|
||||
@@ -29,6 +30,7 @@
|
||||
"class" $imageclass
|
||||
"height" $height
|
||||
"fetchpriority" "high"
|
||||
"format" $format
|
||||
"loading" "eager"
|
||||
"maxheight" $maxheight
|
||||
"maxwidth" $maxwidth
|
||||
|
@@ -1,4 +1,5 @@
|
||||
{{ $alt := .Get "alt" }}
|
||||
{{ $format := .Get "format" }}
|
||||
{{ $height := .Get "height" }}
|
||||
{{ $link := .Get "link" }}
|
||||
{{ $maxheight := .Get "maxheight" }}
|
||||
@@ -16,6 +17,7 @@
|
||||
{{ $content := partial "paige/img.html" (dict
|
||||
"alt" $alt
|
||||
"class" "img-fluid"
|
||||
"format" $format
|
||||
"height" $height
|
||||
"maxheight" $maxheight
|
||||
"maxwidth" $maxwidth
|
||||
|
Reference in New Issue
Block a user