1
0
Fork 0
forked from mirrors/hugo-tufte

Add fixes (thanks A.B.)

This commit is contained in:
Phil Bajsicki 2025-01-10 21:34:10 +01:00
parent b5ed20f5f0
commit 806b33fa32
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
{{- end -}}
{{- $label := $.Page.Scratch.Get "marginnoteCounter" -}}
{{- $ind := .Get "ind" | default .Site.Params.marginNoteInd -}}
<label for="marginnote-{{ $label }}" class="margin-toggle marginnote-ind">{{ $ind }}</label>
<label for="marginnote-{{ $label }}" class="margin-toggle marginnote-ind">{{ $ind }}</label>{{- "" -}}
<input type="checkbox" id="marginnote-{{ $label }}" class="margin-toggle"/>
<span class="marginnote"{{ with .Get "lang" }} lang="{{ . }}"{{ end }}>
{{ .Inner | markdownify}}

View file

@ -4,7 +4,7 @@
{{- $.Page.Scratch.Set "sidenoteCounter" 1 -}}
{{- end -}}
{{- $label := $.Page.Scratch.Get "sidenoteCounter" -}}
<label for="sidenote-{{ $label }}" class="margin-toggle sidenote-number">({{ $label }})</label>
<label for="sidenote-{{ $label }}" class="margin-toggle sidenote-number">({{ $label }})</label>{{- "" -}}
<input type="checkbox" id="sidenote-{{ $label }}" class="margin-toggle"/>
<span class="sidenote"{{ with .Get "lang" }} lang="{{ . }}"{{ end }}>
<span class="sidenote-number">({{ $label }})</span>{{ .Inner | markdownify }}