hugo-tufte/layouts/shortcodes/marginnote.html

5 lines
330 B
HTML
Raw Normal View History

2021-07-21 20:23:55 +02:00
{{ $marginnoteDomIdSuffix := .Ordinal }}
2023-04-14 18:39:58 +02:00
<label for="marginnote-{{.Page.File.UniqueID}}-{{ $marginnoteDomIdSuffix }}" class="margin-toggle">&#8853;</label>
2021-01-31 23:48:46 +01:00
<input type="checkbox" id="marginnote-{{.Page.File.UniqueID}}-{{ $marginnoteDomIdSuffix }}" class="margin-toggle"/>
<span class="marginnote">{{ .Inner | markdownify}}</span>