mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-12-23 13:59:44 +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 -}}
|
{{- $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"/>
|
<input type="checkbox" id="marginnote-{{ $label }}" class="margin-toggle"/>
|
||||||
<span class="marginnote">
|
<span class="marginnote"{{ with .Get "lang" }} lang="{{ . }}"{{ end }}>
|
||||||
{{ .Inner | markdownify}}
|
{{ .Inner | markdownify}}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -6,6 +6,6 @@
|
||||||
{{- $label := $.Page.Scratch.Get "sidenoteCounter" -}}
|
{{- $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"/>
|
<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 class="sidenote-number">({{ $label }})</span>{{ .Inner | markdownify }}
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Reference in a new issue