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

45 lines
1.0 KiB
Markdown
Raw Normal View History

---
title: Expand
---
2020-01-12 15:33:02 +01:00
Expand shortcode can help to decrease clutter on screen by hiding part of text. Expand content by clicking on it.
## Usage
2020-01-12 15:33:02 +01:00
```tpl
{{</* expand */>}}
### Markdown content
2020-05-31 18:17:32 +02:00
Dolor sit, sumo unique ...
2020-01-12 15:33:02 +01:00
{{</* /expand */>}}
```
It is also possible to use a custom label and symbol.
2020-01-12 15:33:02 +01:00
<!-- prettier-ignore-start -->
2020-01-12 15:33:02 +01:00
```tpl
{{</* expand "Custom Label" "..." */>}}
### More markdown
2020-05-31 18:17:32 +02:00
Dolor sit, sumo unique ...
2020-01-12 15:33:02 +01:00
{{</* /expand */>}}
```
## Example
{{< expand >}}
### Markdown content
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.
{{< /expand >}}
2020-01-12 15:33:02 +01:00
{{< expand "Custom Label" "..." >}}
2020-05-31 18:17:32 +02:00
### More markdown
2020-05-31 18:17:32 +02: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. 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 15:33:02 +01:00
{{< /expand >}}