Incorporate content from section _index.md files
This commit is contained in:
parent
32944bcad2
commit
e269f00670
|
@ -0,0 +1,5 @@
|
||||||
|
+++
|
||||||
|
title = "reveal-hugo example presentation"
|
||||||
|
+++
|
||||||
|
|
||||||
|
# reveal-hugo
|
|
@ -3,11 +3,14 @@
|
||||||
<!-- Any section element inside of this container is displayed as a slide -->
|
<!-- Any section element inside of this container is displayed as a slide -->
|
||||||
<div class="slides">
|
<div class="slides">
|
||||||
<!-- Find all pages inside of this section -->
|
<!-- Find all pages inside of this section -->
|
||||||
{{ range .Pages }}
|
{{ range union (slice .Page) }}
|
||||||
<!-- Split the processed content by <hr /> tag -->
|
<!-- Don't process empty content files -->
|
||||||
{{ range (split .Content "<hr />") }}
|
{{ if ne (len .Content) 0 }}
|
||||||
<!-- Output the content as safe -->
|
<!-- Split the processed content by <hr /> tag -->
|
||||||
<section>{{ . | safeHTML }}</section>
|
{{ range (split .Content "<hr />") }}
|
||||||
|
<!-- Output the content as safe -->
|
||||||
|
<section>{{ . | safeHTML }}</section>
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,11 +3,14 @@
|
||||||
<!-- Any section element inside of this container is displayed as a slide -->
|
<!-- Any section element inside of this container is displayed as a slide -->
|
||||||
<div class="slides">
|
<div class="slides">
|
||||||
<!-- Find all pages with a type of reveal -->
|
<!-- Find all pages with a type of reveal -->
|
||||||
{{ range (where .Data.Pages "Type" "reveal") }}
|
{{ range union (slice .Page) (where .Data.Pages "Type" "reveal") }}
|
||||||
<!-- Split the processed content by <hr /> tag -->
|
<!-- Don't process empty content files -->
|
||||||
{{ range (split .Content "<hr />") }}
|
{{ if ne (len .Content) 0 }}
|
||||||
<!-- Output the content as safe -->
|
<!-- Split the processed content by <hr /> tag -->
|
||||||
<section>{{ . | safeHTML }}</section>
|
{{ range (split .Content "<hr />") }}
|
||||||
|
<!-- Output the content as safe -->
|
||||||
|
<section>{{ . | safeHTML }}</section>
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue