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
+22
View File
@@ -0,0 +1,22 @@
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<!-- Use the array of pages passed as a param -->
{{ range . -}}
<!-- Don't process empty content files -->
{{- if ne (len .Content) 0 -}}
<!-- Split the processed content by <hr /> tag -->
{{- range (split .Content "<hr />") -}}
<!-- Only wrap in <section> tag if not already wrapped by shortcode -->
{{- if in . "data-noprocess" -}}
{{- . | safeHTML -}}
{{- else -}}
<section>
{{ . | safeHTML }}
</section>
{{ end -}}
{{- end -}}
{{- end -}}
{{- end }}
</div>
</div>