blob: eb5dc2dc664aff9ba95c4b5c6a7d6a29e1674f3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
+++
title = "Collapse"
description = ""
weight = 5
+++
Feel like hiding some content from your visitor in a collapsible element? The collapse shortcode does exactly that. It creates a button that shows or hides the content in the shortcode on request.
{{< collapse title="Click me to show content" >}}
Hi there, I'm the hidden content. Didn't see that one coming, huh?
{{< /collapse >}}
## Usage
Simply place the following shortcode on the page
{{< code lang="html" >}}
{{</* collapse title="TITLE" */>}} [content] {{</* /collapse */>}}
{{< /code >}}
### Parameters
#### *title*
The lang parameter defines the text to show in the button that toggles the collapse content.
Example: <code>title="Click me to show content"</code>.
|