2018-04-27 01:36:13 +02:00
|
|
|
{{ 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 -->
|
2018-04-27 07:11:04 +02:00
|
|
|
{{ range union (slice .Page) }}
|
|
|
|
<!-- 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 }}
|
2018-04-27 01:36:13 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|