mirror of
https://github.com/Threnklyn/reveal-hugo.git
synced 2026-06-04 20:58:58 +02:00
Initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
baseURL = "https://reveal-hugo.netlify.com/"
|
||||
languageCode = "en-us"
|
||||
title = "A Hugo theme for creating Reveal.js presentations"
|
||||
theme = "reveal-hugo"
|
||||
themesDir = "../../"
|
||||
|
||||
[author]
|
||||
name = "Josh Dzielak"
|
||||
|
||||
[params]
|
||||
description = "A description of this presentation"
|
||||
reveal_theme = "solarized"
|
||||
@@ -0,0 +1,41 @@
|
||||
+++
|
||||
weight = 20
|
||||
+++
|
||||
|
||||
# reveal-hugo
|
||||
|
||||
Presentation content lives in `content/reveal`.
|
||||
|
||||
Or manually set the type.
|
||||
|
||||
```toml
|
||||
+++
|
||||
type = "reveal"
|
||||
+++
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# reveal-hugo
|
||||
|
||||
Presentation sections are ordered by `weight`.
|
||||
|
||||
```toml
|
||||
+++
|
||||
weight = 20
|
||||
+++
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# reveal-hugo
|
||||
|
||||
Protip: use `fragment` shortcode to make content appear in sequence.
|
||||
|
||||
```
|
||||
{{%/* fragment */%}} One {{%/* /fragment */%}}
|
||||
```
|
||||
|
||||
{{% fragment %}} One {{% /fragment %}}
|
||||
{{% fragment %}} Two {{% /fragment %}}
|
||||
{{% fragment %}} Three {{% /fragment %}}
|
||||
@@ -0,0 +1,11 @@
|
||||
+++
|
||||
weight = 30
|
||||
+++
|
||||
|
||||
# reveal-hugo
|
||||
|
||||
If you want your markdown files to contain more than one slide...
|
||||
|
||||
🤔
|
||||
|
||||
...this theme is for you!
|
||||
@@ -0,0 +1,30 @@
|
||||
+++
|
||||
weight = 10
|
||||
+++
|
||||
|
||||
# reveal-hugo
|
||||
|
||||
One markdown file, multiple slides.
|
||||
|
||||
Separate slides with `---`
|
||||
|
||||
```markdown
|
||||
# Slide 1
|
||||
|
||||
Body 1.
|
||||
|
||||
---
|
||||
|
||||
# Slide 2
|
||||
|
||||
Body 2.
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# reveal-hugo
|
||||
|
||||
Hello!
|
||||
|
||||
I'm a new slide from the same markdown file.
|
||||
Reference in New Issue
Block a user