mirror of
https://github.com/Threnklyn/reveal-hugo.git
synced 2026-06-07 22:13:31 +02:00
Use home folder for default presentation
Add an example presentation for a section
This commit is contained in:
@@ -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>
|
||||
+1
-1
@@ -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 -->
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<script>location.href = "/";</script>
|
||||
Reference in New Issue
Block a user