Add shortcodes for customizing slides, markdown, HTML

This commit is contained in:
dzello
2018-04-30 18:47:20 -07:00
parent 05130b7ce6
commit f7427d4631
13 changed files with 217 additions and 133 deletions
+5
View File
@@ -0,0 +1,5 @@
<section data-noprocess data-markdown data-separator="^\r?\n---\r?\n$">
<script type="text/template">
{{ .Inner }}
</script>
</section>
+9
View File
@@ -0,0 +1,9 @@
{{ $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" }}
{{ $params := . }}
<section data-noprocess
{{ range $attribute := $attributes -}}
{{- with $params.Get $attribute }}data-{{ $attribute | safeHTMLAttr }}="{{ . }}"{{ end -}}
{{- end -}}
>
{{ .Inner }}
</section>