hacker.tours-website/themes/zen/layouts/shortcodes/details.html

7 lines
242 B
HTML
Raw Normal View History

2024-06-13 22:14:05 +02:00
{{ $class := .Get "class" -}}
{{ $summary := .Get "summary" -}}
<details{{ with $class }} class="{{ . }}"{{ end }}>
{{ with $summary }}<summary>{{ . }}</summary>{{ end }}
{{ .Inner | $.Page.RenderString (dict "display" "block") }}
</details>