Add height, width params to all shortcodes

This commit is contained in:
Will Faught
2023-01-13 16:40:44 -08:00
parent 5bb75fb8cb
commit c8e955bd36
5 changed files with 140 additions and 14 deletions

View File

@@ -1,5 +1,9 @@
{{ $caption := .Get 0 | default (.Get "caption") }}
{{ $float := .Get "float" }}
{{ $height := .Get "height" }}
{{ $maxheight := .Get "maxheight" }}
{{ $maxwidth := .Get "maxwidth" }}
{{ $width := .Get "width" }}
{{ $content := .Inner }}
@@ -7,4 +11,8 @@
"caption" $caption
"content" $content
"float" $float
"height" $height
"maxheight" $maxheight
"maxwidth" $maxwidth
"width" $width
) }}