title: Example Slides
summary: An introduction to using Wowchemy's Slides feature.
authors: []
tags: ['Tutorials']
categories: []
date: '2019-02-05'
slides:
# Choose a theme from https://github.com/hakimel/reveal.js#theming
theme: black
# Choose a code highlighting style (if highlighting enabled in params.toml
)
# Light style: github. Dark style: dracula (default).
Right Arrow
or Space
Left Arrow
Home
End
Esc
S
F
Alt + Click
E
Inline code: variable
Code block:
porridge = "blueberry"
if porridge == "blueberry":
print("Eating...")
In-line math: $x + y = z$
Block math:
$$ f\left( x \right) = \;\frac{{2\left( {x + 4} \right)\left( {x - 4} \right)}}{{\left( {x + 4} \right)\left( {x + 1} \right)}} $$
Make content appear incrementally
{{%/* fragment */%}} One {{%/* /fragment */%}}
{{%/* fragment */%}} **Two** {{%/* /fragment */%}}
{{%/* fragment */%}} Three {{%/* /fragment */%}}
Press Space
to play!
{{% fragment %}} One {{% /fragment %}} {{% fragment %}} Two {{% /fragment %}} {{% fragment %}} Three {{% /fragment %}}
A fragment can accept two optional parameters:
class
: use a custom style (requires definition in custom CSS)weight
: sets the order in which a fragment appearsAdd speaker notes to your presentation
{{%/* speaker_note */%}}
- Only the speaker can read these notes
- Press `S` key to view
{{%/* /speaker_note */%}}
Press the S
key to view the speaker notes!
{{< speaker_note >}}
S
key to view{{< /speaker_note >}}
{{< slide background-image="boards.webp" >}}
Customize the slide style and background
{{</* slide background-image="boards.webp" */>}}
{{</* slide background-color="#0000FF" */>}}
{{</* slide class="my-style" */>}}
Let's make headers navy colored.
Create assets/css/reveal_custom.css
with:
.reveal section h1,
.reveal section h2,
.reveal section h3 {
color: navy;
}