blog-static/themes/vanilla/layouts/shortcodes/numberedsidenote.html

12 lines
446 B
HTML
Raw Normal View History

2019-12-09 23:11:28 -08:00
{{ .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 }}">
<span class="sidenote-delimiter">[note:</span>
2019-12-09 23:11:28 -08:00
{{ .Inner }}
<span class="sidenote-delimiter">]</span>
2019-12-09 23:11:28 -08:00
</span>
</span>