hugo-geekdoc/exampleSite/content/en/shortcodes/expand.md

47 lines
1.1 KiB
Markdown
Raw Normal View History

---
title: Expand
---
2020-01-12 14:33:02 +00:00
Expand shortcode can help to decrease clutter on screen by hiding part of text. Expand content by clicking on it.
## Example
2020-05-31 16:17:32 +00:00
2020-01-12 14:33:02 +00:00
### Default
<!-- prettier-ignore-start -->
2020-01-12 14:33:02 +00:00
```tpl
{{</* expand */>}}
## Markdown content
2020-05-31 16:17:32 +00:00
Dolor sit, sumo unique ...
2020-01-12 14:33:02 +00:00
{{</* /expand */>}}
```
<!-- prettier-ignore-end -->
2020-01-12 14:33:02 +00:00
{{< expand >}}
2020-05-31 16:17:32 +00:00
2020-01-12 14:33:02 +00:00
## Markdown content
2020-05-31 16:17:32 +00:00
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re.
2020-01-12 14:33:02 +00:00
{{< /expand >}}
### With Custom Label
<!-- prettier-ignore-start -->
2020-01-12 14:33:02 +00:00
```tpl
{{</* expand "Custom Label" "..." */>}}
## Markdown content
2020-05-31 16:17:32 +00:00
Dolor sit, sumo unique ...
2020-01-12 14:33:02 +00:00
{{</* /expand */>}}
```
<!-- prettier-ignore-end -->
2020-01-12 14:33:02 +00:00
{{< expand "Custom Label" "..." >}}
2020-05-31 16:17:32 +00:00
## More markdown
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates
investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts
feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious
copious quo ad. Stet probates in duo.
2020-01-12 14:33:02 +00:00
{{< /expand >}}