58f8935d1e
Solve this problem: https://github.com/alex-shpak/hugo-book/issues/352 The Reason: https://github.com/gohugoio/hugo/issues/8688
798 B
798 B
Expand
Expand shortcode can help to decrease clutter on screen by hiding part of text. Expand content by clicking on it.
Example
Default
{{</* expand */>}}
## Markdown content
Lorem markdownum insigne...
{{</* /expand */>}}
{{< expand >}}
Markdown content
Lorem markdownum insigne... {{< /expand >}}
With Custom Label
{{</* 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 >}}