From fb7910c0a258a7d9f81fc5fc7106d6a3c69f1cb0 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 9 Dec 2022 15:35:11 -0800 Subject: [PATCH 1/3] Remove unused numberedsidenote shortcode --- layouts/shortcodes/numberedsidenote.html | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 layouts/shortcodes/numberedsidenote.html diff --git a/layouts/shortcodes/numberedsidenote.html b/layouts/shortcodes/numberedsidenote.html deleted file mode 100644 index d9fb351..0000000 --- a/layouts/shortcodes/numberedsidenote.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ .Page.Scratch.Add "numbernote-id" 1 }} -{{ $id := .Page.Scratch.Get "numbernote-id" }} - - - - -[note: -{{ .Inner }} -] - - From 2a0f0cad496afe50ee884e9228d022e0dfb419fc Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 9 Dec 2022 15:36:07 -0800 Subject: [PATCH 2/3] Add option to offset a sidenote to prevent overlap --- layouts/shortcodes/sidenote.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/shortcodes/sidenote.html b/layouts/shortcodes/sidenote.html index 61ae8e9..4393211 100644 --- a/layouts/shortcodes/sidenote.html +++ b/layouts/shortcodes/sidenote.html @@ -1,7 +1,11 @@ +{{ if $offset := .Get 3 }} + +{{ else }} +{{ end }} [note: {{ .Inner }} ] From 667440d2e3276f11961f425ab28939ca5836c904 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 9 Dec 2022 15:38:44 -0800 Subject: [PATCH 3/3] Serve KaTeX JS if we're editing live --- layouts/partials/head.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a28a96b..cfbc4be 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -23,5 +23,13 @@ + {{ if .Site.IsServer }} + + + + {{ end }} + + {{ .Title }}