themen-hugo-35c3-reveal/exampleSite/content/home/shortcodes/fragment.md
dzello faadedd499 Improve exampleSite presentation
Better flow and more information

Plus... emoji!
2018-07-19 16:49:24 +02:00

800 B

+++ weight = 30 +++

Fragment

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 %}}


Frag

The frag shortcode is more terse than fragment. It accepts a 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