mirror of
https://github.com/Threnklyn/reveal-hugo.git
synced 2026-06-13 17:43:34 +02:00
Add the frag shortcode
This commit is contained in:
@@ -22,6 +22,29 @@ The `fragment` shortcode makes content appear incrementally.
|
||||
|
||||
---
|
||||
|
||||
### Frag shortcode
|
||||
|
||||
The `frag` shortcode is like `fragment` but more terse. It accepts the content as the `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
|
||||
|
||||
---
|
||||
|
||||
{{% section %}}
|
||||
|
||||
### Section shortcode
|
||||
|
||||
Reference in New Issue
Block a user