transition-speed param and example cleanup

This commit is contained in:
dzello
2018-04-30 23:02:09 -07:00
parent f7427d4631
commit 99b4363c90
6 changed files with 18 additions and 11 deletions
+4 -1
View File
@@ -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>
+3 -3
View File
@@ -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 }}