From 60bbe5949d7ebf874dad97b547f24302094186fb Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Fri, 20 May 2022 18:10:17 -0400 Subject: [PATCH] Create a details shortcode to allow collapsable sections --- layouts/shortcodes/details.html | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 layouts/shortcodes/details.html diff --git a/layouts/shortcodes/details.html b/layouts/shortcodes/details.html new file mode 100644 index 0000000..596dcce --- /dev/null +++ b/layouts/shortcodes/details.html @@ -0,0 +1,4 @@ +
+ {{ .Get 0 | default "See more..."}} + {{ .Inner | markdownify }} +