2018-05-01 03:47:20 +02:00
|
|
|
+++
|
|
|
|
weight = 30
|
|
|
|
+++
|
|
|
|
|
2018-07-19 16:49:24 +02:00
|
|
|
## Fragment
|
2018-05-01 03:47:20 +02:00
|
|
|
|
|
|
|
The `fragment` shortcode makes content appear incrementally.
|
|
|
|
|
|
|
|
```
|
|
|
|
{{%/* fragment */%}} One {{%/* /fragment */%}}
|
|
|
|
{{%/* fragment */%}} Two {{%/* /fragment */%}}
|
|
|
|
{{%/* fragment */%}} Three {{%/* /fragment */%}}
|
|
|
|
```
|
|
|
|
|
|
|
|
{{% fragment %}} One {{% /fragment %}}
|
|
|
|
{{% fragment %}} Two {{% /fragment %}}
|
|
|
|
{{% fragment %}} Three {{% /fragment %}}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2018-07-19 16:49:24 +02:00
|
|
|
## Frag
|
2018-05-01 03:47:20 +02:00
|
|
|
|
2018-05-01 08:02:09 +02:00
|
|
|
The `frag` shortcode is more terse than `fragment`. It accepts a `c` attribute.
|
2018-05-01 03:47:20 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
{{</* 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
|
|
|
|
|