portails/layouts/shortcodes/details.html

4 lines
273 B
HTML
Raw Normal View History

2022-02-09 20:05:13 +01:00
<details{{ with .Get 1 }} {{ . | safeHTML }}{{ end -}}>
2022-02-10 10:14:36 +01:00
<summary>{{ with .Get 0 -}}{{ . | safeHTML }}{{ else -}}{{ errorf "No summary provided"}}{{ end -}}</summary>
2022-02-09 20:05:13 +01:00
{{ with .Inner -}}{{ . | markdownify}}{{ else -}}{{ errorf "No details provided"}}{{ end -}}
</details>