From 34f0579682f97f9fab647249286f7042a85073a8 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Tue, 24 May 2022 22:45:24 +0200 Subject: Add a detail/summary shortcode. --- layouts/shortcodes/details.html | 6 ++++++ 1 file changed, 6 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..e308042 --- /dev/null +++ b/layouts/shortcodes/details.html @@ -0,0 +1,6 @@ +{{ $class := .Get "class" -}} +{{ $summary := .Get "summary" -}} + +{{ with $summary }}{{ . }}{{ end }} +{{ .Inner | markdownify }} + -- cgit v1.2.3