themen-hugo-35c3-reveal/layouts/_default/list.reveal.html
dzello 4e0d34413b Reveal should be an outputFormat
Now any Hugo section can be configured to generate a presentation without altering its type, and the theme is more easily copied into existing sites without conflicting with any preexisting layouts.
2018-04-27 22:56:09 -07:00

18 lines
626 B
HTML

{{ define "main" }}
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<!-- Find all pages inside of this section -->
{{ range union (slice .Page) .Pages }}
<!-- 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>
{{ end }}