Use home folder for default presentation

Add an example presentation for a section
This commit is contained in:
dzello 2018-04-26 22:26:49 -07:00
parent cf355d22d8
commit dc44a78f9c
8 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1,7 @@
+++
title = "Example of a section presentation"
+++
# Section Presentation
Only content from this section will go into this presentation.

View File

@ -0,0 +1,7 @@
+++
weight = 10
+++
# Including...
Content from files like this one.

1
layouts/home/list.html Normal file
View File

@ -0,0 +1 @@
<script>document.location.href = "/";</script>

View File

@ -3,7 +3,7 @@
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<!-- 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 -->
{{ if ne (len .Content) 0 }}
<!-- Split the processed content by <hr /> tag -->

View File

@ -1 +0,0 @@
<script>location.href = "/";</script>