Skip to content

Commit

Permalink
collapse shortcode content can write formative code and change line (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
drizzle committed Sep 17, 2021
1 parent 61cb1d9 commit 2449eaa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions layouts/shortcodes/collapse.html
Original file line number Diff line number Diff line change
@@ -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 }}
<p><details {{ if (eq (.Get "openByDefault") true) }} open=true {{ end }}>
<summary markdown="span">{{ .Get "summary" | markdownify }}</summary>
{{ .Get "content" | markdownify }}
{{ .Inner | markdownify }}
</details></p>

0 comments on commit 2449eaa

Please sign in to comment.