hugo-tufte/layouts/shortcodes/sidenote.html

4 lines
327 B
HTML
Raw Normal View History

2021-01-31 23:48:46 +01:00
{{ $sidenoteDomIdSuffix := .Ordinal }}<label for="sidenote-{{.Page.File.UniqueID}}-{{ $sidenoteDomIdSuffix }}" class="margin-toggle sidenote-number"></label>
<input type="checkbox" id="sidenote-{{.Page.File.UniqueID}}-{{ $sidenoteDomIdSuffix }}" class="margin-toggle"/>
<span class="sidenote">{{ .Inner | markdownify }}</span>