From 886e656644c9895f7c5350411898ae35f495d9a2 Mon Sep 17 00:00:00 2001 From: tdro Date: Fri, 18 Nov 2022 19:41:45 -0500 Subject: themes/default/layouts/shortcodes/disclose: Allow inner Inherit display instead of revert --- themes/default/layouts/shortcodes/disclose.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'themes') diff --git a/themes/default/layouts/shortcodes/disclose.html b/themes/default/layouts/shortcodes/disclose.html index fdbcc6a..2cc99c7 100644 --- a/themes/default/layouts/shortcodes/disclose.html +++ b/themes/default/layouts/shortcodes/disclose.html @@ -1,5 +1,9 @@ {{- $text := default "Content Warning: " (.Get "text" | default (.Get 0)) -}} +{{- if gt (len .Inner) 1 -}} + {{- $text = .Inner -}} +{{- end -}} +
{{ (or $.Page.Params.title $text) | markdownify }}
-- cgit v1.2.3