Add maxheight, maxwidth params to image

This commit is contained in:
Will Faught
2023-03-03 21:07:11 -08:00
parent b8259e8e96
commit bd5176c78d
3 changed files with 34 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
{{ $alt := .Get "alt" }}
{{ $link := .Get "link" }}
{{ $height := .Get "height" }}
{{ $maxheight := .Get "maxheight" }}
{{ $maxwidth := .Get "maxwidth" }}
{{ $method := .Get "method" }}
{{ $options := .Get "options" }}
{{ $raw := .Get "raw" }}
@@ -12,6 +14,8 @@
"alt" $alt
"class" "img-fluid"
"height" $height
"maxheight" $maxheight
"maxwidth" $maxwidth
"method" $method
"options" $options
"page" .Page