Add numbered sidenotes

This commit is contained in:
Danila Fedorin 2019-12-09 23:11:28 -08:00
parent f75a47e273
commit b2fc6ea5a8

View 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>