Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hugo Shortcode: Details
{{ if .Inner }}<details {{ if eq (.Get "open") "true" }}open{{ end }}>
{{ with .Get "title" }}<summary>{{.}}</summary>{{ end }}
{{ .Inner | markdownify }}
</details>{{ end }}
@AbeEstrada
Copy link
Author

AbeEstrada commented Jan 5, 2022

{{<details title="Your Content" open="true">}}

Hello World!

- List 1
- List 2

{{</details>}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment