This repository has been archived on 2024-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
wiki/themes/hugo-book/exampleSite/content/docs/shortcodes/details.md

23 lines
459 B
Markdown
Raw Normal View History

2022-03-31 16:29:00 +00:00
# Details
Details shortcode is a helper for `details` html5 element. It is going to replace `expand` shortcode.
## Example
```tpl
{{</* details "Title" [open] */>}}
## Markdown content
Lorem markdownum insigne...
{{</* /details */>}}
```
```tpl
{{</* details title="Title" open=true */>}}
## Markdown content
Lorem markdownum insigne...
{{</* /details */>}}
```
{{< details "Title" open >}}
## Markdown content
Lorem markdownum insigne...
{{< /details >}}