2023-04-15 00:34:42 +02:00
|
|
|
{{- with $.Page.Scratch.Get "sidenoteCounter" -}}
|
|
|
|
{{- $.Page.Scratch.Set "sidenoteCounter" (add . 1) -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- $.Page.Scratch.Set "sidenoteCounter" 1 -}}
|
|
|
|
{{- end -}}
|
2023-04-18 01:29:12 +02:00
|
|
|
{{- $label := $.Page.Scratch.Get "sidenoteCounter" -}}
|
|
|
|
<label for="sidenote-{{ $label }}" class="margin-toggle sidenote-number">({{ $label }})</label>
|
|
|
|
<input type="checkbox" id="sidenote-{{ $label }}" class="margin-toggle"/>
|
2023-04-15 00:34:42 +02:00
|
|
|
<span class="sidenote">
|
2023-04-18 01:29:12 +02:00
|
|
|
<span class="sidenote-number">({{ $label }})</span>{{ .Inner | markdownify }}
|
2023-04-15 00:34:42 +02:00
|
|
|
</span>
|