The toggle
shortcode is similar to the code-toggle
, but it’s more generic.
Usage
1{{< toggle myToggleName >}}
2
3 {{< toggle-item myToggleItemName >}}
4 CONTENT HERE, MARKDOWN and SHORTCODE are support.
5 {{< /toggle-item >}}
6
7 ...
8
9{{< /toggle >}}
- The
myToggleName
MUST be unique per page. - The
myToggleItemName
MUST be unique per toggle.
Example
1console.log("hello world")
1<?php
2 echo "hello world"
1SELECT "hello world"
Comments