forked from mirrors/hugo-tufte
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