Add support for wrapper argument

This commit is contained in:
mark
2023-08-16 13:05:42 +02:00
parent 8d3c0cc4ce
commit e77fa7dfbc

View File

@@ -26,6 +26,7 @@
{{ end -}}
{{- $class := .Get "class" -}}
{{- $wrapper := .Get "wrapper" -}}
{{ $title := .Get "title" -}}
{{ $caption := .Get "caption" -}}
{{ $supportedFlags := slice "true" "false" -}}
@@ -49,6 +50,7 @@
{{- partial "assets/image.html" (dict
"url" $url
"ratio" $ratio
"outerClass" $wrapper
"innerClass" $class
"title" $title
"caption" $caption