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:
authorEerik Sven Puudist <35540617+eeriksp@users.noreply.github.com>2021-06-16 00:47:35 +0300
committerGitHub <noreply@github.com>2021-06-16 00:47:35 +0300
commitc4bb0e47a7e108782ef17e751c31613ecbd2291d (patch)
treee9923987e271fbbc3674394b2f162f593c0d1fcc
parentb9755d3412ba47d164056c4994de1ccef574371d (diff)
Create a shortcode for sidenotes
-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>