diff options
| author | Reorx <novoreorx@gmail.com> | 2022-05-05 00:35:09 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-05-05 00:35:09 +0800 |
| commit | c369bd5b3f8750dc24ea21f435e9701fc10ceed3 (patch) | |
| tree | 7a18978b73316018d92ba5e83d139da2e60f2389 /layouts/shortcodes | |
| parent | 0654046820c339c82e95ad606486cea5be907315 (diff) | |
enhance collapse shortcode
Diffstat (limited to 'layouts/shortcodes')
| -rw-r--r-- | layouts/shortcodes/collapse.html | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/layouts/shortcodes/collapse.html b/layouts/shortcodes/collapse.html index 17d8d3b..1c5e96f 100644 --- a/layouts/shortcodes/collapse.html +++ b/layouts/shortcodes/collapse.html @@ -1,8 +1,4 @@ -{{ if .Get "summary" }} -{{ else }} -{{ warnf "missing value for param 'summary': %s" .Position }} -{{ end }} <p><details {{ if (eq (.Get "openByDefault") true) }} open=true {{ end }}> - <summary markdown="span">{{ .Get "summary" | markdownify }}</summary> + <summary markdown="span">{{ .Get 0 | markdownify }}</summary> {{ .Inner | markdownify }} </details></p> |
