mirror of
https://github.com/Threnklyn/reveal-hugo.git
synced 2026-06-07 14:03:33 +02:00
Add a layout for creating a presentation from a section
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{{ 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 .Pages }}
|
||||
<!-- Split the processed content by <hr /> tag -->
|
||||
{{ range (split .Content "<hr />") }}
|
||||
<!-- Output the content as safe -->
|
||||
<section>{{ . | safeHTML }}</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user