mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-12-23 05:54:47 +01:00
add lang option for side/marginnote
This commit is contained in:
parent
263ec827c7
commit
0f09e896bb
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue