Files
tpml/themes/reveal-hugo/layouts/partials/internal/func/cleanParams.html
2025-06-25 15:54:11 +02:00

12 lines
292 B
HTML

{{/* This function is meant to remove reveal-js unrelated initializers (like the
plugins array)
*/}}
{{- $params := dict -}}
{{- range $k, $v := . -}}
{{ if not (in (slice "plugins") $k) }}
{{ $params = merge $params (dict $k $v) }}
{{- end -}}
{{- end -}}
{{ return $params }}