mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-12-23 22:09:44 +01:00
7 lines
328 B
HTML
7 lines
328 B
HTML
{{- $label := (add .Ordinal 1) -}}
|
|
{{- $ind := .Get "ind" | default .Site.Params.marginNoteInd -}}
|
|
<label for="marginnote-{{ $label }}" class="margin-toggle marginnote-ind">{{ $ind }}</label>
|
|
<input type="checkbox" id="marginnote-{{ $label }}" class="margin-toggle"/>
|
|
<span class="marginnote">
|
|
{{ .Inner | markdownify}}
|
|
</span>
|