From 2a0f0cad496afe50ee884e9228d022e0dfb419fc Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 9 Dec 2022 15:36:07 -0800 Subject: [PATCH] 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 }} ]