diff options
Moved site to website folder
12 files changed, 0 insertions, 578 deletions
diff --git a/themes/reveal-hugo/exampleSite/content/_index.md b/themes/reveal-hugo/exampleSite/content/_index.md deleted file mode 100644 index fba3be6..0000000 --- a/themes/reveal-hugo/exampleSite/content/_index.md +++ /dev/null @@ -1,22 +0,0 @@ -+++ -title = "reveal-hugo" -description = "A Hugo theme for creating Reveal.js presentations" -outputs = ["Reveal"] -[reveal_hugo] -custom_theme = "reveal-hugo/themes/robot-lung.css" -margin = 0.2 -highlight_theme = "color-brewer" -transition = "slide" -transition_speed = "fast" -[reveal_hugo.templates.hotpink] -class = "hotpink" -background = "#FF4081" -+++ - -# đŊī¸ - -# reveal-hugo - -A Hugo theme for creating Reveal.js presentations. - -~ made by [@dzello](https://dzello.com/) ~
\ No newline at end of file diff --git a/themes/reveal-hugo/exampleSite/content/example/_index.md b/themes/reveal-hugo/exampleSite/content/example/_index.md deleted file mode 100644 index 91a81a7..0000000 --- a/themes/reveal-hugo/exampleSite/content/example/_index.md +++ /dev/null @@ -1,10 +0,0 @@ -+++ -title = "Example of a section presentation" -outputs = ["Reveal"] -[reveal_hugo] -theme = "moon" -+++ - -# Section Presentation - -Only content from this section will go into this presentation.
\ No newline at end of file diff --git a/themes/reveal-hugo/exampleSite/content/example/presentation.md b/themes/reveal-hugo/exampleSite/content/example/presentation.md deleted file mode 100644 index 585bab5..0000000 --- a/themes/reveal-hugo/exampleSite/content/example/presentation.md +++ /dev/null @@ -1,7 +0,0 @@ -+++ -weight = 10 -+++ - -# Including... - -Content from files like this one.
\ No newline at end of file diff --git a/themes/reveal-hugo/exampleSite/content/home/features.md b/themes/reveal-hugo/exampleSite/content/home/features.md deleted file mode 100644 index b00c363..0000000 --- a/themes/reveal-hugo/exampleSite/content/home/features.md +++ /dev/null @@ -1,19 +0,0 @@ -+++ -weight = 10 -+++ - -## What's included? - -- All Reveal.js HTML, CSS and JS (v3.6.0) -- All out-of-the-box Reveal.js themes -- Two custom Reveal.js themes (including this one) - ---- - -## Features - -- Write slides in Markdown in one or more files -- Shorcodes for fragments, sections, slides & more -- All Reveal.js parameters can be customized -- Any Hugo section can be output as a presentation - diff --git a/themes/reveal-hugo/exampleSite/content/home/resources.md b/themes/reveal-hugo/exampleSite/content/home/resources.md deleted file mode 100644 index e19cbc1..0000000 --- a/themes/reveal-hugo/exampleSite/content/home/resources.md +++ /dev/null @@ -1,43 +0,0 @@ -+++ -weight = 42 -+++ - -# Resources - ---- - -## Code and docs - -- [reveal-hugo Github README](https://github.com/dzello/reveal-hugo) -- [Content for this presentation](https://github.com/dzello/reveal-hugo/tree/master/exampleSite) - ---- - -## External resources - -- [Reveal.js](https://revealjs.com/) -- [Hugo docs](https://gohugo.io/) -- [Hugo output format docs](https://gohugo.io/templates/output-formats/) - ---- - -## Designed to... - -- Deploy to [Netlify](https://netlify.com/) -- Edit with [Forestry](https://forestry.io/) - ---- - -# đ - -Contribute by opening issues and pull requests. - ---- - -# Thanks! - ---- - -# âŠī¸ - -#### [Start over](#) diff --git a/themes/reveal-hugo/exampleSite/content/home/shortcodes/fragment.md b/themes/reveal-hugo/exampleSite/content/home/shortcodes/fragment.md deleted file mode 100644 index e53592c..0000000 --- a/themes/reveal-hugo/exampleSite/content/home/shortcodes/fragment.md +++ /dev/null @@ -1,41 +0,0 @@ -+++ -weight = 30 -+++ - -## Fragment - -The `fragment` shortcode makes content appear incrementally. - -``` -{{%/* fragment */%}} One {{%/* /fragment */%}} -{{%/* fragment */%}} Two {{%/* /fragment */%}} -{{%/* fragment */%}} Three {{%/* /fragment */%}} -``` - -{{% fragment %}} One {{% /fragment %}} -{{% fragment %}} Two {{% /fragment %}} -{{% fragment %}} Three {{% /fragment %}} - ---- - -## Frag - -The `frag` shortcode is more terse than `fragment`. It accepts a `c` attribute. - -``` -{{</* frag c="One" */>}} -{{</* frag c="Two" */>}} -{{</* frag c="Three" */>}} -``` - -{{< frag c="One" >}} -{{< frag c="Two" >}} -{{< frag c="Three" >}} - ---- - -Both `fragment` and `frag` accept two additional parameters: - -- `class`: sets the class of the wrapping `span` element -- `index`: controls the order in which sections will appear - diff --git a/themes/reveal-hugo/exampleSite/content/home/shortcodes/introduction.md b/themes/reveal-hugo/exampleSite/content/home/shortcodes/introduction.md deleted file mode 100644 index 2978a52..0000000 --- a/themes/reveal-hugo/exampleSite/content/home/shortcodes/introduction.md +++ /dev/null @@ -1,11 +0,0 @@ -+++ -weight = 29 -+++ - -# Shortcodes - ---- - -Hugo's shortcodes are similar to functions or templates that extend what you can do with Markdown. - -[Shortcode documentation](https://gohugo.io/content-management/shortcodes/)
\ No newline at end of file diff --git a/themes/reveal-hugo/exampleSite/content/home/shortcodes/markdown.md b/themes/reveal-hugo/exampleSite/content/home/shortcodes/markdown.md deleted file mode 100644 index 21167bd..0000000 --- a/themes/reveal-hugo/exampleSite/content/home/shortcodes/markdown.md +++ /dev/null @@ -1,38 +0,0 @@ -+++ -weight = 36 -+++ - -{{< markdown >}} - -## Markdown - -Reveal.js has its own [markdown processor](https://github.com/hakimel/reveal.js#markdown). To use that instead of Hugo, surround a slide with the markdown shortcode. - -``` -{{</* markdown */>}} - -# Hello world! - -{{</* /markdown */>}} -``` - -<br> -<small> -đĄ Make sure to use the `{{</* */>}}` shortcode syntax to avoid rendering by Hugo. -</small> - ---- - -<!-- .slide: data-background="#FF4081" --> - -Reveal.js markdown uses HTML comments to change slide properties, like background color. - -``` -{{</* markdown */>}} -<!-- .slide: data-background="#FF4081" --> -# I'm a colorful slide -{{</* /markdown */>}} -``` - -{{< /markdown >}} - diff --git a/themes/reveal-hugo/exampleSite/content/home/shortcodes/other.md b/themes/reveal-hugo/exampleSite/content/home/shortcodes/other.md deleted file mode 100644 index abc9d5a..0000000 --- a/themes/reveal-hugo/exampleSite/content/home/shortcodes/other.md +++ /dev/null @@ -1,33 +0,0 @@ -+++ -weight = 38 -+++ - -## Note - -Add speaker notes to your presentation with the note shortcode. - -```markdown -{{%/* note */%}} - -Type 's' to see this slide's speaker notes. - -{{%/* /note */%}} -``` - -{{% note %}} - -You found the speaker notes! - -{{% /note %}} - ---- - -<section data-noprocess> - <h2>Write slides in HTML</h2> - <p>Use a <code>section</code> tag with a <code>data-noprocess</code> attribute to avoid any processing by reveal-hugo.</p> - <pre> -<section data-noprocess> - <h1>Hello world!</h1> -<section></pre> - <small>đĄ This is useful if you can't get Markdown to output exactly what you want.</small> -</section> diff --git a/themes/reveal-hugo/exampleSite/content/home/shortcodes/section.md b/themes/reveal-hugo/exampleSite/content/home/shortcodes/section.md deleted file mode 100644 index 797ba21..0000000 --- a/themes/reveal-hugo/exampleSite/content/home/shortcodes/section.md +++ /dev/null @@ -1,44 +0,0 @@ -+++ -weight = 33 -+++ - -{{% section %}} - -## Section - -The `section` shortcode groups slides into a **vertical display**. - -<br> -<small> -use the down arrow or swipe down to continue -</small> -<br> -<a href="#" class="navigate-down">đŊ</a> - ---- - -Put the shortcode around the slides you want to group together. - -```markdown -{{%/* section */%}} - -## Section slide 1 - ---- - -## Section slide 2 - -{{%/* /section */%}} -``` - -Keep going down. - ---- - -## That's it! - -Use the right arrow or swipe right to continue. - -{{% /section %}} - - diff --git a/themes/reveal-hugo/exampleSite/content/home/shortcodes/slide.md b/themes/reveal-hugo/exampleSite/content/home/shortcodes/slide.md deleted file mode 100644 index 473199e..0000000 --- a/themes/reveal-hugo/exampleSite/content/home/shortcodes/slide.md +++ /dev/null @@ -1,137 +0,0 @@ -+++ -weight = 34 -+++ - -## Slide - -Customize individual slide attributes like id, class, background color and transition. Use the same keys as Reveal.js but omit the 'data-' prefix. - ---- - -{{% slide id="custom-1" transition="zoom" transition-speed="fast" %}} - -## Custom slide 1 - -``` -{{%/* slide id="custom-1" transition="zoom" transition-speed="fast" */%}} - -## Custom slide 1 - -{{%/* /slide */%}} -``` - -{{% /slide %}} - ---- - -{{% slide id="custom-2" background="#FF4081" %}} - -## Custom slide 2 - -``` -{{%/* slide id="custom-2" background="#FF4081" */%}} - -## Custom slide 2 - -{{%/* /slide */%}} -``` - -{{% /slide %}} - ---- - -đĄ Tip: Setting a slide's `id` attribute makes it easy to link to from other parts of the presentation. - -<br> -```markdown -Go to [custom slide 1](#custom-1) -``` - -<small> -Go to [custom slide 1](#custom-1) -</small> - ---- - -Slide attribute possibilities from the [Reveal.js docs](https://github.com/hakimel/reveal.js): - -- `autoslide` -- `state` -- `background` -- `background-color` -- `background-image` -- `background-size` -- `background-position` -- `background-repeat` - ---- - -- `background-video` -- `background-video-loop` -- `background-video-muted` -- `background-interactive` -- `background-iframe` -- `background-transition` -- `transition` (can have different in and out transitions) -- `transition-speed` -- `notes` (can also use the note shortcode) -- `timing` - ---- - -{{% section %}} - -## Slide templates - -Store sets of common slide attributes in front matter variables and apply them to slides with the template attribute. - -<br> -<small> -navigate down to learn more -</small> -<br> -<a href="#" class="navigate-down">đŊ</a> - ---- - -Create templates in config.toml, _index.md or the current page's front matter. Put them under the **templates** key with a meaningful name: - -```toml -[reveal_hugo.templates.hotpink] -class = "hotpink" -background = "#FF4081" -``` - ---- - -{{% slide template="hotpink" %}} - -Apply the template using the **template** attribute of the slide shortcode: - -```markdown -{{%/* slide template="hotpink" */%}} - -# I'm a hot pink slide! - -{{%/* /slide */%}} -``` - -{{% /slide %}} - ---- - -If a template exists in multiple configurations, it's properties will be merged. If a property is declared multiple times, the order of precedence is: - -- page -- section (_index.md) -- site (config.toml) - -{{% /section %}} - ---- - -{{% section %}} - -{{% slide content="home.example" /%}} - -{{% /section %}} diff --git a/themes/reveal-hugo/exampleSite/content/home/usage.md b/themes/reveal-hugo/exampleSite/content/home/usage.md deleted file mode 100644 index af50dfa..0000000 --- a/themes/reveal-hugo/exampleSite/content/home/usage.md +++ /dev/null @@ -1,173 +0,0 @@ -+++ -weight = 20 -+++ - -# Usage - ---- - -## Prerequisite - -First, add this to your `config.toml`: - -```toml -[outputFormats.Reveal] -baseName = "index" -mediaType = "text/html" -isHTML = true -``` - ---- - -### Presentation at site root - -Create `content/_index.md`: - -```markdown -+++ -outputs = ["Reveal"] -+++ - -# Slide 1 - -Hello world! -``` - ---- - -### Add slides in same file - -Separate them by `---`: - -``` - -# Slide 1 - -Hello world! - ---- - -# Slide 2 - -Hello program! - -``` - ---- - -### Add slides with other files - -Add slides to `content/home/*.md` - -```markdown -+++ -weight = 10 -+++ - -# Slide 3 - ---- - -# Slide 4 -``` - -<small>đĄ Tip: Use `weight` to specify the order that files should be added.</small> - ---- - -### Presentation at '/{section}/' - -In `content/{section}/_index.md`: - -```markdown -+++ -outputs = ["Reveal"] -+++ - -# Slide 1 - ---- - -# Slide 2 - -``` - ---- - -Add slides from other files in `content/{section}/*.md` - -```markdown -+++ -weight = 10 -+++ - -# Slide 3 - ---- - -# Slide 4 -``` - -<small>đĄ Tip: Use `weight` to specify the order that files should be added.</small> - ---- - -# Configuration - ---- - -## Reveal.js themes - -Put in `config.toml` or a presentation's front matter. - -Use the `theme` key for themes that come with Reveal.js. - -```toml -[params.reveal_hugo] -theme = "moon" -highlight_theme = "zenburn" -``` - -[Reveal.js themes](https://github.com/hakimel/reveal.js/#theming) · -[highlight.js themes](https://highlightjs.org/static/demo/) - ---- - -## Use a custom theme - -Use the `custom_theme` key to point to a CSS file in the `static` directory. - -```toml -[params.reveal_hugo] -custom_theme = "reveal-hugo/themes/robot-lung.css" -``` - ---- - -## Like this theme? - -reveal-hugo comes with 2 extra Reveal.js themes: - -- [robot-lung](https://github.com/dzello/revealjs-themes#robot-lung) (this one) -- [sunblind](https://github.com/dzello/revealjs-themes#sunblind) - -<br> -<small> -They live in the `static/reveal-hugo/themes` folder and also [on Github](https://github.com/dzello/revealjs-themes). -</small> - ---- - -## Reveal.js params - -Set **snakecase** versions of Reveal.js params, which will be camelized and passed to `Reveal.initialize`. - -```toml -[params.reveal_hugo] -history = true -slide_number = true -transition = 'zoom' -transition_speed = 'fast' -``` - -[Full list of params](https://github.com/hakimel/reveal.js/#configuration) |
