mirror of
https://github.com/Threnklyn/reveal-hugo.git
synced 2026-06-05 05:08:27 +02:00
Make the slide shortcode easier to use
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
example = '''
|
||||
reusable = '''
|
||||
|
||||
# Reusable slides
|
||||
|
||||
@@ -13,17 +13,17 @@ navigate down to learn more
|
||||
|
||||
---
|
||||
|
||||
Add an `example` key to data/home.toml:
|
||||
Add a `example` key to data/home.toml:
|
||||
|
||||
```
|
||||
```toml
|
||||
example = "I'm a slide"
|
||||
```
|
||||
<br>
|
||||
|
||||
Set the `content` attribute to "home.example":
|
||||
|
||||
```
|
||||
{{% slide content="home.example" /%}}
|
||||
```markdown
|
||||
{{< slide content="home.example" >}}
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
Reference in New Issue
Block a user