Website Summary Files Commits Branches @commit @diff @stats
path: root / website / themes / reveal-hugo / exampleSite / content
diff options
context:
space:
mode:
Commit3245f1f1404785d92c21eb381c08dee5a4be6bb7 (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-09-04 09:08:41 +0300
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-09-04 09:08:41 +0300
Files3c245582fb5a2a9eaf8518f7272c03a6aaa2f635 /website/themes/reveal-hugo/exampleSite/content
IPL-3245f1f1404785d92c21eb381c08dee5a4be6bb7.tar
IPL-3245f1f1404785d92c21eb381c08dee5a4be6bb7.tar.gz
IPL-3245f1f1404785d92c21eb381c08dee5a4be6bb7.zip
Parentae12c0a482298e4da9b816137ceb6131c7d4b9e4 (diff)
Moved site to website folder
diff --git a/website/themes/reveal-hugo/exampleSite/content/_index.md b/website/themes/reveal-hugo/exampleSite/content/_index.md
new file mode 100644
index 0000000..fba3be6
--- /dev/null
+++ b/website/themes/reveal-hugo/exampleSite/content/_index.md
@@ -0,0 +1,22 @@
++++
+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/website/themes/reveal-hugo/exampleSite/content/example/_index.md b/website/themes/reveal-hugo/exampleSite/content/example/_index.md
new file mode 100644
index 0000000..91a81a7
--- /dev/null
+++ b/website/themes/reveal-hugo/exampleSite/content/example/_index.md
@@ -0,0 +1,10 @@
++++
+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/website/themes/reveal-hugo/exampleSite/content/example/presentation.md b/website/themes/reveal-hugo/exampleSite/content/example/presentation.md
new file mode 100644
index 0000000..585bab5
--- /dev/null
+++ b/website/themes/reveal-hugo/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/website/themes/reveal-hugo/exampleSite/content/home/features.md b/website/themes/reveal-hugo/exampleSite/content/home/features.md
new file mode 100644
index 0000000..b00c363
--- /dev/null
+++ b/website/themes/reveal-hugo/exampleSite/content/home/features.md
@@ -0,0 +1,19 @@
++++
+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/website/themes/reveal-hugo/exampleSite/content/home/resources.md b/website/themes/reveal-hugo/exampleSite/content/home/resources.md
new file mode 100644
index 0000000..e19cbc1
--- /dev/null
+++ b/website/themes/reveal-hugo/exampleSite/content/home/resources.md
@@ -0,0 +1,43 @@
++++
+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/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/fragment.md b/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/fragment.md
new file mode 100644
index 0000000..e53592c
--- /dev/null
+++ b/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/fragment.md
@@ -0,0 +1,41 @@
++++
+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/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/introduction.md b/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/introduction.md
new file mode 100644
index 0000000..2978a52
--- /dev/null
+++ b/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/introduction.md
@@ -0,0 +1,11 @@
++++
+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/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/markdown.md b/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/markdown.md
new file mode 100644
index 0000000..21167bd
--- /dev/null
+++ b/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/markdown.md
@@ -0,0 +1,38 @@
++++
+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/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/other.md b/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/other.md
new file mode 100644
index 0000000..abc9d5a
--- /dev/null
+++ b/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/other.md
@@ -0,0 +1,33 @@
++++
+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>
+&lt;section data-noprocess&gt;
+ &lt;h1&gt;Hello world!&lt;/h1&gt;
+&lt;section&gt;</pre>
+ <small>💡 This is useful if you can't get Markdown to output exactly what you want.</small>
+</section>
diff --git a/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/section.md b/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/section.md
new file mode 100644
index 0000000..797ba21
--- /dev/null
+++ b/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/section.md
@@ -0,0 +1,44 @@
++++
+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/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/slide.md b/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/slide.md
new file mode 100644
index 0000000..473199e
--- /dev/null
+++ b/website/themes/reveal-hugo/exampleSite/content/home/shortcodes/slide.md
@@ -0,0 +1,137 @@
++++
+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/website/themes/reveal-hugo/exampleSite/content/home/usage.md b/website/themes/reveal-hugo/exampleSite/content/home/usage.md
new file mode 100644
index 0000000..af50dfa
--- /dev/null
+++ b/website/themes/reveal-hugo/exampleSite/content/home/usage.md
@@ -0,0 +1,173 @@
++++
+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) &middot;
+[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)