diff --git a/layouts/shortcodes/collapse.html b/layouts/shortcodes/collapse.html index b92ad01..17d8d3b 100644 --- a/layouts/shortcodes/collapse.html +++ b/layouts/shortcodes/collapse.html @@ -1,12 +1,8 @@ -{{ 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 }}
+ {{ .Inner | markdownify }}