add lang option for side/marginnote

This commit is contained in:
loikein 2023-04-29 05:17:50 +01:00
parent 263ec827c7
commit 0f09e896bb
2 changed files with 2 additions and 2 deletions

View file

@ -7,6 +7,6 @@
{{- $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">
<span class="marginnote"{{ with .Get "lang" }} lang="{{ . }}"{{ end }}>
{{ .Inner | markdownify}}
</span>

View file

@ -6,6 +6,6 @@
{{- $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"/>
<span class="sidenote">
<span class="sidenote"{{ with .Get "lang" }} lang="{{ . }}"{{ end }}>
<span class="sidenote-number">({{ $label }})</span>{{ .Inner | markdownify }}
</span>