Skip to content

Instantly share code, notes, and snippets.

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 }}
Copy link

AbeEstrada commented Jan 5, 2022

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

Hello World!

- List 1
- List 2


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