hugo-tufte/layouts/shortcodes/marginnote.html

13 lines
332 B
HTML
Raw Normal View History

2021-07-21 20:23:55 +02:00
{{ $marginnoteDomIdSuffix := .Ordinal }}
2021-08-01 20:15:43 +02:00
<label
for="marginnote-{{.Page.File.UniqueID}}-{{ $marginnoteDomIdSuffix }}"
class="margin-toggle"
>&#8853;
2021-07-21 20:23:55 +02:00
</label>
2021-08-01 20:15:43 +02:00
<input
type="checkbox"
id="marginnote-{{.Page.File.UniqueID}}-{{ $marginnoteDomIdSuffix }}"
class="margin-toggle"
/>
<span class="marginnote">{{ .Inner }}</span>