diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-09-07 23:26:41 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-09-07 23:26:41 -0400 |
commit | ca851a0933a3c3da7440eec9a90a33b18f4c9dc5 (patch) | |
tree | 024bd2f1881c8314c23effb031a1f7fd6e05db3e /content/docs/shortcodes/expand.md |
Batman
Diffstat (limited to 'content/docs/shortcodes/expand.md')
-rw-r--r-- | content/docs/shortcodes/expand.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/content/docs/shortcodes/expand.md b/content/docs/shortcodes/expand.md new file mode 100644 index 0000000..c62520f --- /dev/null +++ b/content/docs/shortcodes/expand.md @@ -0,0 +1,35 @@ +# Expand + +Expand shortcode can help to decrease clutter on screen by hiding part of text. Expand content by clicking on it. + +## Example +### Default + +```tpl +{{</* expand */>}} +## Markdown content +Lorem markdownum insigne... +{{</* /expand */>}} +``` + +{{< expand >}} +## Markdown content +Lorem markdownum insigne... +{{< /expand >}} + +### With Custom Label + +```tpl +{{</* expand "Custom Label" "..." */>}} +## Markdown content +Lorem markdownum insigne... +{{</* /expand */>}} +``` + +{{< expand "Custom Label" "..." >}} +## Markdown content +Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat +stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa +protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes. +Miseratus fonte Ditis conubia. +{{< /expand >}} |