Make the slide shortcode easier to use

This commit is contained in:
dzello
2018-08-03 15:07:12 +01:00
parent aa464f40ac
commit 6f7767a751
6 changed files with 71 additions and 44 deletions
+5 -5
View File
@@ -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>