We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e9b047 commit 8c2f997Copy full SHA for 8c2f997
layouts/shortcodes/collapse.html
@@ -1,12 +1,8 @@
1
-{{ if .Get "content" }}
2
{{ if .Get "summary" }}
3
{{ else }}
4
{{ warnf "missing value for param 'summary': %s" .Position }}
5
{{ end }}
6
-{{ else }}
7
-{{ errorf "missing value for param 'content': %s" .Position }}
8
-{{ end }}
9
<p><details {{ if (eq (.Get "openByDefault") true) }} open=true {{ end }}>
10
<summary markdown="span">{{ .Get "summary" | markdownify }}</summary>
11
- {{ .Get "content" | markdownify }}
+ {{ .Inner | markdownify }}
12
</details></p>
0 commit comments