diff --git a/exampleSite/content/home/conclusion.md b/exampleSite/content/home/conclusion.md index 322e237..ba81ea2 100644 --- a/exampleSite/content/home/conclusion.md +++ b/exampleSite/content/home/conclusion.md @@ -11,8 +11,9 @@ weight = 40 ### Resources -- [Reveal.js](https://revealjs.org) -- [Hugo output formats](https://gohugo.io/templates/output-formats/) +- [Reveal.js](https://revealjs.com/) +- [Hugo docs](https://gohugo.io/) +- [Hugo output format docs](https://gohugo.io/templates/output-formats/) --- diff --git a/exampleSite/content/home/features.md b/exampleSite/content/home/features.md index c6166b7..70281ba 100644 --- a/exampleSite/content/home/features.md +++ b/exampleSite/content/home/features.md @@ -15,3 +15,26 @@ weight = 10 - Markdown files are parsed into multiple slides - Built-in shortcodes expose Reveal.js functionality - Customize Reveal.js parameters including the theme + +--- + +## Multiple slides per markdown file + +Separate slides with `---` + +```markdown +# Slide 1 + +Body 1. + +--- + +# Slide 2 + +Body 2. + +``` + +--- + +I'm a **new** slide from the **same** markdown file. diff --git a/exampleSite/content/home/usage-shortcodes.md b/exampleSite/content/home/usage-shortcodes.md index b66a57e..477fa88 100644 --- a/exampleSite/content/home/usage-shortcodes.md +++ b/exampleSite/content/home/usage-shortcodes.md @@ -52,6 +52,6 @@ Keep scrolling down. ## That's it! -Use the right arrow or swipe right. +Use the right arrow or swipe right to continue. {{% /section %}} diff --git a/exampleSite/content/home/usage.md b/exampleSite/content/home/usage.md index ab5b877..4ba5893 100644 --- a/exampleSite/content/home/usage.md +++ b/exampleSite/content/home/usage.md @@ -6,29 +6,19 @@ weight = 20 --- -## Multiple slides per markdown file +## Prerequisite -Separate slides with `---` - -```markdown -# Slide 1 - -Body 1. - ---- - -# Slide 2 - -Body 2. +Add this to your `config.toml`: +```toml +[outputFormats.Reveal] +baseName = "index" +mediaType = "text/html" +isHTML = true ``` --- -I'm a **new** slide from the **same** markdown file. - ---- - ## Make a presentation for `/` In `content/_index.md`: @@ -51,10 +41,14 @@ Put more slides in `content/home/*.md` ```markdown +++ -weight = 20 +weight = 10 +++ # Slide 3 + +--- + +# Slide 4 ``` Use `weight` to specify the order @@ -62,7 +56,7 @@ Use `weight` to specify the order --- -## Make a presentation for a Hugo section +## Make a presentation for any Hugo section In `content/{section}/_index.md`: @@ -85,10 +79,14 @@ Put more slides in `content/{section}/*.md` ```markdown +++ -weight = 20 +weight = 10 +++ # Slide 3 + +--- + +# Slide 4 ``` Use `weight` to specify the order