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