hugo-theme-hilfe/exampleSite/content/shortcodes/expand.md

43 lines
975 B
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.
## Example
2020-05-31 18:17:32 +02:00
2020-01-12 15:33:02 +01:00
### Default
```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 */>}}
```
{{< expand >}}
2020-05-31 18:17:32 +02:00
2020-01-12 15:33:02 +01:00
## Markdown content
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.
2020-01-12 15:33:02 +01:00
{{< /expand >}}
### With Custom Label
```tpl
{{</* expand "Custom Label" "..." */>}}
## Markdown content
2020-05-31 18:17:32 +02:00
Dolor sit, sumo unique ...
2020-01-12 15:33:02 +01:00
{{</* /expand */>}}
```
{{< expand "Custom Label" "..." >}}
2020-05-31 18:17:32 +02: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 15:33:02 +01:00
{{< /expand >}}