From 8c2f997ab398ad57d49c04ffbb6474c64adf2ec7 Mon Sep 17 00:00:00 2001 From: drizzle <32258570+drizzl4@users.noreply.github.com> Date: Fri, 17 Sep 2021 21:11:23 +0800 Subject: [PATCH] collapse shortcode content can write formative code and change line (#561) --- 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 b92ad018..17d8d3bc 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 }}