hugo-tufte/layouts/shortcodes/marginnote.html
2023-04-18 00:29:12 +01:00

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>