diff --git a/layouts/shortcodes/collapse.html b/layouts/shortcodes/collapse.html new file mode 100644 index 0000000..b92ad01 --- /dev/null +++ b/layouts/shortcodes/collapse.html @@ -0,0 +1,12 @@ +{{ if .Get "content" }} +{{ if .Get "summary" }} +{{ else }} +{{ warnf "missing value for param 'summary': %s" .Position }} +{{ end }} +{{ else }} +{{ errorf "missing value for param 'content': %s" .Position }} +{{ end }} +
{{ .Get "summary" | markdownify }}
+ {{ .Get "content" | markdownify }}
+