diff options
author | Eerik Sven Puudist <35540617+eeriksp@users.noreply.github.com> | 2021-06-16 00:47:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 00:47:35 +0300 |
commit | c4bb0e47a7e108782ef17e751c31613ecbd2291d (patch) | |
tree | e9923987e271fbbc3674394b2f162f593c0d1fcc | |
parent | b9755d3412ba47d164056c4994de1ccef574371d (diff) |
Create a shortcode for sidenotes
-rw-r--r-- | layouts/shortcodes/sidenote.html | 4 |
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> |