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
+1 -16
View File
@@ -1,18 +1,3 @@
{{ define "main" }}
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<!-- Find all pages with a type of reveal -->
{{ range union (slice .Page) (where .Data.Pages "Type" "home") }}
<!-- Don't process empty content files -->
{{ if ne (len .Content) 0 }}
<!-- Split the processed content by <hr /> tag -->
{{ range (split .Content "<hr />") }}
<!-- Output the content as safe -->
<section>{{ . | safeHTML }}</section>
{{ end }}
{{ end }}
{{ end }}
</div>
</div>
{{ partial "slides" (union (slice .Page) (where .Data.Pages "Type" "home")) }}
{{ end }}