mirror of
https://github.com/Threnklyn/reveal-hugo.git
synced 2026-05-18 21:03:29 +02:00
transition-speed param and example cleanup
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
<section data-noprocess data-markdown data-separator="^\r?\n---\r?\n$">
|
||||
<section data-noprocess data-markdown
|
||||
data-separator="^\r?\n---\r?\n$"
|
||||
data-separator-vertical="^\r?\n------\r?\n$"
|
||||
data-separator-notes="notes?:">
|
||||
<script type="text/template">
|
||||
{{ .Inner }}
|
||||
</script>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{{ $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" }}
|
||||
{{ $attributes := slice "background-color" "background-image" "background-size" "background-position" "background-repeat" "transition" "transition-speed" "background-iframe" "background-interactive" "background-video" "background-video-loop" "background-video-muted" }}
|
||||
{{ $params := . }}
|
||||
<section data-noprocess
|
||||
{{ range $attribute := $attributes -}}
|
||||
{{- with $params.Get $attribute }}data-{{ $attribute | safeHTMLAttr }}="{{ . }}"{{ end -}}
|
||||
{{- range $attribute := $attributes -}}
|
||||
{{- with $params.Get $attribute }} data-{{ $attribute | safeHTMLAttr }}="{{ . }}"{{ end -}}
|
||||
{{- end -}}
|
||||
>
|
||||
{{ .Inner }}
|
||||
|
||||
Reference in New Issue
Block a user