Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/7ma7X/HugoTeX.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/shortcodes/sidenote.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/shortcodes/sidenote.html b/layouts/shortcodes/sidenote.html
new file mode 100644
index 0000000..f856664
--- /dev/null
+++ b/layouts/shortcodes/sidenote.html
@@ -0,0 +1,4 @@
+{{ $id := md5 .Inner }}
+<label for="{{ $id }}" class="sidenote-toggle sidenote-number"></label>
+<input type="checkbox" id="{{ $id }}" class="sidenote-toggle" />
+<span class="sidenote">{{ .Inner }}</span>