diff --git a/exampleSite/content/home/body.md b/exampleSite/content/home/body.md index 3ddcf23..307c0c0 100644 --- a/exampleSite/content/home/body.md +++ b/exampleSite/content/home/body.md @@ -2,14 +2,10 @@ weight = 20 +++ -# reveal-hugo - Content for the root presentation lives in `content/_index.md` and `content/home`. --- -# reveal-hugo - Content files are ordered by `weight` when added to the presentation. ```toml @@ -20,9 +16,7 @@ weight = 20 --- -# reveal-hugo - -Create a presentation for any section by adding this to its `_index.md`: +Create a presentation for any section of your site by adding this to its `_index.md`: ```toml outputs = ["Reveal"] @@ -30,9 +24,7 @@ outputs = ["Reveal"] --- -# reveal-hugo - -Use the `fragment` shortcode to make content appear incrementally. +**The `fragment` shortcode** makes content appear incrementally. ``` diff --git a/exampleSite/content/home/conclusion.md b/exampleSite/content/home/conclusion.md index b67f60c..93308a8 100644 --- a/exampleSite/content/home/conclusion.md +++ b/exampleSite/content/home/conclusion.md @@ -12,4 +12,6 @@ If you want your markdown files to contain more than one slide each... --- +### Learn more + [https://github.com/dzello/reveal-hugo](https://github.com/dzello/reveal-hugo) diff --git a/exampleSite/content/home/introduction.md b/exampleSite/content/home/introduction.md index 33b0422..dfb1164 100644 --- a/exampleSite/content/home/introduction.md +++ b/exampleSite/content/home/introduction.md @@ -2,9 +2,7 @@ weight = 10 +++ -# reveal-hugo - -Multiple slides per markdown file. +### Multiple slides per markdown file. Separate slides with `---` @@ -23,8 +21,6 @@ Body 2. --- -# reveal-hugo - Hello! I'm a new slide from the same markdown file. diff --git a/exampleSite/content/home/section.md b/exampleSite/content/home/section.md new file mode 100644 index 0000000..6bb83bc --- /dev/null +++ b/exampleSite/content/home/section.md @@ -0,0 +1,35 @@ ++++ +weight = 25 ++++ + +{{% section %}} + +**The `section` shortcode** creates a batch of vertical slides. + +Scroll down. + +--- + +This is the code. + +```markdown +{{%/* section */%}} + +## Section slide 1 + +--- + +## Section slide 2 + +{{%/* /section */%}} +``` + +Keep scrolling down. + +--- + +## End of section + +Continue to the right. + +{{% /section %}} diff --git a/exampleSite/content/sections/_index.md b/exampleSite/content/sections/_index.md deleted file mode 100644 index 83bbc53..0000000 --- a/exampleSite/content/sections/_index.md +++ /dev/null @@ -1,23 +0,0 @@ -+++ -title = "Reveal.js presentation sections example" -outputs = ["Reveal"] -reveal_theme = "moon" -+++ - -Test - ---- - -{{% section %}} - -Two - ---- - -Three - -{{% /section %}} - ---- - -Four