Add maxheight, maxwidth params

This commit is contained in:
Will Faught
2023-01-10 21:08:25 -08:00
parent 02a80777e9
commit c3051e027f
5 changed files with 87 additions and 3 deletions

View File

@@ -2,6 +2,8 @@
{{ $caption := .Get "caption" }}
{{ $height := .Get "height" }}
{{ $link := .Get "link" }}
{{ $maxheight := .Get "maxheight" }}
{{ $maxwidth := .Get "maxwidth" }}
{{ $method := .Get "method" }}
{{ $options := .Get "options" }}
{{ $src := .Get 0 | default (.Get "src") }}
@@ -13,6 +15,8 @@
"caption" $caption
"height" $height
"link" $link
"maxheight" $maxheight
"maxwidth" $maxwidth
"method" $method
"options" $options
"src" $src