Add a layout for creating a presentation from a section
This commit is contained in:
parent
5f724be7bd
commit
0e79c0d110
1 changed files with 15 additions and 0 deletions
15
layouts/_default/list.html
Normal file
15
layouts/_default/list.html
Normal file
|
@ -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 }}
|
Loading…
Reference in a new issue