Add numbered sidenotes
This commit is contained in:
parent
f75a47e273
commit
b2fc6ea5a8
9
themes/vanilla/layouts/shortcodes/numberedsidenote
Normal file
9
themes/vanilla/layouts/shortcodes/numberedsidenote
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{ .Page.Scratch.Add "numbernote-id" 1 }}
|
||||
{{ $id := .Page.Scratch.Get "numbernote-id" }}
|
||||
<span class="sidenote">
|
||||
<label class="sidenote-label" for="numbernote-{{ $id }}">({{ $id }})</label>
|
||||
<input class="sidenote-checkbox" type="checkbox" id="numbernote-{{ $id }}"></input>
|
||||
<span class="sidenote-content sidenote-{{ .Get 0 }}">
|
||||
{{ .Inner }}
|
||||
</span>
|
||||
</span>
|
Loading…
Reference in New Issue
Block a user