diff options
Diffstat (limited to 'code/frontpage/layouts/shortcodes/details.html')
| -rw-r--r-- | code/frontpage/layouts/shortcodes/details.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/code/frontpage/layouts/shortcodes/details.html b/code/frontpage/layouts/shortcodes/details.html new file mode 100644 index 0000000..61a7183 --- /dev/null +++ b/code/frontpage/layouts/shortcodes/details.html @@ -0,0 +1,4 @@ +<details{{ with .Get 1 }} {{ . | safeHTML }}{{ end -}}> + <summary>{{ with .Get 0 -}}{{ . | safeHTML }}{{ else -}}{{ errorf "No summary provided"}}{{ end -}}</summary> + {{ with .Inner -}}{{ . | markdownify}}{{ else -}}{{ errorf "No details provided"}}{{ end -}} +</details>
\ No newline at end of file |
