hugo-tufte/layouts/shortcodes/marginnote.html

4 lines
329 B
HTML
Raw Normal View History

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