From dc44a78f9c43f5b43b71ccf13af30434204f7d32 Mon Sep 17 00:00:00 2001 From: dzello Date: Thu, 26 Apr 2018 22:26:49 -0700 Subject: [PATCH] Use home folder for default presentation Add an example presentation for a section --- exampleSite/content/example/_index.md | 7 +++++++ exampleSite/content/example/presentation.md | 7 +++++++ exampleSite/content/{reveal => home}/body.md | 0 exampleSite/content/{reveal => home}/conclusion.md | 0 exampleSite/content/{reveal => home}/introduction.md | 0 layouts/home/list.html | 1 + layouts/index.html | 2 +- layouts/reveal/list.html | 1 - 8 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 exampleSite/content/example/_index.md create mode 100644 exampleSite/content/example/presentation.md rename exampleSite/content/{reveal => home}/body.md (100%) rename exampleSite/content/{reveal => home}/conclusion.md (100%) rename exampleSite/content/{reveal => home}/introduction.md (100%) create mode 100644 layouts/home/list.html delete mode 100644 layouts/reveal/list.html diff --git a/exampleSite/content/example/_index.md b/exampleSite/content/example/_index.md new file mode 100644 index 0000000..4bf1d46 --- /dev/null +++ b/exampleSite/content/example/_index.md @@ -0,0 +1,7 @@ ++++ +title = "Example of a section presentation" ++++ + +# Section Presentation + +Only content from this section will go into this presentation. \ No newline at end of file diff --git a/exampleSite/content/example/presentation.md b/exampleSite/content/example/presentation.md new file mode 100644 index 0000000..585bab5 --- /dev/null +++ b/exampleSite/content/example/presentation.md @@ -0,0 +1,7 @@ ++++ +weight = 10 ++++ + +# Including... + +Content from files like this one. \ No newline at end of file diff --git a/exampleSite/content/reveal/body.md b/exampleSite/content/home/body.md similarity index 100% rename from exampleSite/content/reveal/body.md rename to exampleSite/content/home/body.md diff --git a/exampleSite/content/reveal/conclusion.md b/exampleSite/content/home/conclusion.md similarity index 100% rename from exampleSite/content/reveal/conclusion.md rename to exampleSite/content/home/conclusion.md diff --git a/exampleSite/content/reveal/introduction.md b/exampleSite/content/home/introduction.md similarity index 100% rename from exampleSite/content/reveal/introduction.md rename to exampleSite/content/home/introduction.md diff --git a/layouts/home/list.html b/layouts/home/list.html new file mode 100644 index 0000000..008c26a --- /dev/null +++ b/layouts/home/list.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index e2e2b76..fb72e73 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,7 +3,7 @@
- {{ range union (slice .Page) (where .Data.Pages "Type" "reveal") }} + {{ range union (slice .Page) (where .Data.Pages "Type" "home") }} {{ if ne (len .Content) 0 }} diff --git a/layouts/reveal/list.html b/layouts/reveal/list.html deleted file mode 100644 index d64b6ee..0000000 --- a/layouts/reveal/list.html +++ /dev/null @@ -1 +0,0 @@ -