mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-05 14:14:41 +00:00
BREAKING CHANGE Module paths moved to `github.com/HugoBlox/kit` with new names: - core `blox-tailwind` → `blox` - analytics → `analytics` - netlify → `integrations/netlify` - slides (reveal) → `slides` Update go.mod, module.yaml/params, scripts, tests, and v0.11 migration guide accordingly.
7 lines
300 B
HTML
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 }}>
|