9 lines
489 B
HTML
9 lines
489 B
HTML
{{ $attributes := slice "background-color" "background-image" "background-size" "background-position" "background-repeat" "transition" "background-iframe" "background-interactive" "background-video" "background-video-loop" "background-video-muted" "background-size" }}
|
|
{{ $params := . }}
|
|
<section data-noprocess
|
|
{{ range $attribute := $attributes -}}
|
|
{{- with $params.Get $attribute }}data-{{ $attribute | safeHTMLAttr }}="{{ . }}"{{ end -}}
|
|
{{- end -}}
|
|
>
|
|
{{ .Inner }}
|
|
</section> |