Use home folder for default presentation
Add an example presentation for a section
This commit is contained in:
parent
cf355d22d8
commit
dc44a78f9c
|
@ -0,0 +1,7 @@
|
||||||
|
+++
|
||||||
|
title = "Example of a section presentation"
|
||||||
|
+++
|
||||||
|
|
||||||
|
# Section Presentation
|
||||||
|
|
||||||
|
Only content from this section will go into this presentation.
|
|
@ -0,0 +1,7 @@
|
||||||
|
+++
|
||||||
|
weight = 10
|
||||||
|
+++
|
||||||
|
|
||||||
|
# Including...
|
||||||
|
|
||||||
|
Content from files like this one.
|
|
@ -0,0 +1 @@
|
||||||
|
<script>document.location.href = "/";</script>
|
|
@ -3,7 +3,7 @@
|
||||||
<!-- 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 union (slice .Page) (where .Data.Pages "Type" "reveal") }}
|
{{ range union (slice .Page) (where .Data.Pages "Type" "home") }}
|
||||||
<!-- Don't process empty content files -->
|
<!-- Don't process empty content files -->
|
||||||
{{ if ne (len .Content) 0 }}
|
{{ if ne (len .Content) 0 }}
|
||||||
<!-- Split the processed content by <hr /> tag -->
|
<!-- Split the processed content by <hr /> tag -->
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
<script>location.href = "/";</script>
|
|
Loading…
Reference in New Issue