forked from mirrors/hugo-tufte
Fixes Hugo deprecation warnings (#16)
This commit is contained in:
parent
9120aa5534
commit
e70a1f0e91
3 changed files with 5 additions and 5 deletions
|
@ -4,4 +4,4 @@
|
||||||
<meta name="description" content="{{ .Description }}">
|
<meta name="description" content="{{ .Description }}">
|
||||||
<meta name="keywords" content="{{ range .Keywords }}{{ . }},{{ end }}">
|
<meta name="keywords" content="{{ range .Keywords }}{{ . }},{{ end }}">
|
||||||
<meta name="author" content="{{ .Site.Title }}">
|
<meta name="author" content="{{ .Site.Title }}">
|
||||||
{{ .Hugo.Generator }}
|
{{ hugo.Generator }}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{{ $marginnoteDomIdSuffix := .Ordinal }}<label for="marginnote-{{.Page.UniqueID}}-{{ $marginnoteDomIdSuffix }}" class="margin-toggle">⊕</label>
|
{{ $marginnoteDomIdSuffix := .Ordinal }}<label for="marginnote-{{.Page.File.UniqueID}}-{{ $marginnoteDomIdSuffix }}" class="margin-toggle">⊕</label>
|
||||||
<input type="checkbox" id="marginnote-{{.Page.UniqueID}}-{{ $marginnoteDomIdSuffix }}" class="margin-toggle"/>
|
<input type="checkbox" id="marginnote-{{.Page.File.UniqueID}}-{{ $marginnoteDomIdSuffix }}" class="margin-toggle"/>
|
||||||
<span class="marginnote">{{ .Inner }}</span>
|
<span class="marginnote">{{ .Inner }}</span>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{{ $sidenoteDomIdSuffix := .Ordinal }}<label for="sidenote-{{.Page.UniqueID}}-{{ $sidenoteDomIdSuffix }}" class="margin-toggle sidenote-number"></label>
|
{{ $sidenoteDomIdSuffix := .Ordinal }}<label for="sidenote-{{.Page.File.UniqueID}}-{{ $sidenoteDomIdSuffix }}" class="margin-toggle sidenote-number"></label>
|
||||||
<input type="checkbox" id="sidenote-{{.Page.UniqueID}}-{{ $sidenoteDomIdSuffix }}" class="margin-toggle"/>
|
<input type="checkbox" id="sidenote-{{.Page.File.UniqueID}}-{{ $sidenoteDomIdSuffix }}" class="margin-toggle"/>
|
||||||
<span class="sidenote">{{ .Inner }}</span>
|
<span class="sidenote">{{ .Inner }}</span>
|
||||||
|
|
Loading…
Reference in a new issue