Hugo
Tips
/layouts/shortcodes/details.html
<details>
<summary>{{ (.Get 0) | markdownify }}</summary>
{{ .Inner | markdownify }}
</details>
content markdown file:
{{< details "This is the summary" >}}
Collapsed text
{{< /details >}}
/layouts/shortcodes/details.html
<details>
<summary>{{ (.Get 0) | markdownify }}</summary>
{{ .Inner | markdownify }}
</details>
content markdown file:
{{< details "This is the summary" >}}
Collapsed text
{{< /details >}}