From 66968582ef45a1c3c38f47477096e9417a774ce9 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Tue, 21 Apr 2020 22:30:00 +0200 Subject: #205, Add details shortcode --- layouts/shortcodes/details.html | 6 ++++++ layouts/shortcodes/expand.html | 1 + 2 files changed, 7 insertions(+) create mode 100644 layouts/shortcodes/details.html (limited to 'layouts/shortcodes') diff --git a/layouts/shortcodes/details.html b/layouts/shortcodes/details.html new file mode 100644 index 0000000..f6fff38 --- /dev/null +++ b/layouts/shortcodes/details.html @@ -0,0 +1,6 @@ +
+ {{ cond .IsNamedParams (.Get "title") (.Get 0) }} +
+ {{ .Inner | markdownify }} +
+
diff --git a/layouts/shortcodes/expand.html b/layouts/shortcodes/expand.html index 1c0cb6b..f254944 100644 --- a/layouts/shortcodes/expand.html +++ b/layouts/shortcodes/expand.html @@ -1,3 +1,4 @@ +{{ warnf "Expand shortcode is deprecated. Use 'details' instead." }}