From b2fc6ea5a83456234cf89c7df8f29b1d5f08f2cb Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Mon, 9 Dec 2019 23:11:28 -0800 Subject: [PATCH] Add numbered sidenotes --- themes/vanilla/layouts/shortcodes/numberedsidenote | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 themes/vanilla/layouts/shortcodes/numberedsidenote diff --git a/themes/vanilla/layouts/shortcodes/numberedsidenote b/themes/vanilla/layouts/shortcodes/numberedsidenote new file mode 100644 index 0000000..0b6358a --- /dev/null +++ b/themes/vanilla/layouts/shortcodes/numberedsidenote @@ -0,0 +1,9 @@ +{{ .Page.Scratch.Add "numbernote-id" 1 }} +{{ $id := .Page.Scratch.Get "numbernote-id" }} + + + + +{{ .Inner }} + +