From 1324c9e65f02bec2ada73a089fa6a10d7ab8a966 Mon Sep 17 00:00:00 2001 From: Ian Clarke Date: Mon, 24 Jun 2024 22:11:49 -0500 Subject: [PATCH] Create table of contents shortcode for Freenet theme. --- themes/freenet/layouts/shortcodes/toc.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 themes/freenet/layouts/shortcodes/toc.html diff --git a/themes/freenet/layouts/shortcodes/toc.html b/themes/freenet/layouts/shortcodes/toc.html new file mode 100644 index 00000000..4615689a --- /dev/null +++ b/themes/freenet/layouts/shortcodes/toc.html @@ -0,0 +1,11 @@ +{{ $headings := .Page.Content | markdownify | plainify | findRE "(?m)^# (.+)$" }} +