From c369bd5b3f8750dc24ea21f435e9701fc10ceed3 Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 5 May 2022 00:35:09 +0800 Subject: [PATCH] enhance collapse shortcode --- layouts/shortcodes/collapse.html | 6 +----- 1 file changed, 1 insertion(+), 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 }}

- {{ .Get "summary" | markdownify }} + {{ .Get 0 | markdownify }} {{ .Inner | markdownify }}