7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-12-26 13:50:21 +00:00
web-ansol.org/themes/academic/layouts/shortcodes/slide.html
2020-06-11 12:46:16 +01:00

7 lines
300 B
HTML

{{ $non_data_attributes := slice "id" "class" }}
<section data-noprocess data-shortcode-slide
{{ range $key, $value := $.Params }}
{{ $attribute := cond (in $non_data_attributes $key) $key (delimit (slice "data" $key) "-") }}
{{ $attribute | safeHTMLAttr }}="{{ $value }}"
{{ end }}>