Home /

Fragment shortcode

The fragment shortcode makes content appear incrementally.

{{% fragment %}} One {{% /fragment %}}
{{% fragment %}} Two {{% /fragment %}}
{{% fragment %}} Three {{% /fragment %}}

One Two Three


Frag shortcode

The frag shortcode is more terse than fragment. It accepts a c attribute.

{{< frag c="One" >}}
{{< frag c="Two" >}}
{{< frag c="Three" >}}

One Two 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