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