New attempt at sidenotes using strategy found in scripter.co
This commit is contained in:
@ -1,8 +0,0 @@
|
||||
{{ $loc := .Get 0 }}
|
||||
{{ if .IsNamedParams }}
|
||||
<div {{with .Get "class"}} class="{{.}}"{{end}}{{with .Get "id"}} id="{{.}}"{{end}}>
|
||||
{{ else if or (eq $loc "") (eq $loc "begin") }}
|
||||
<div>
|
||||
{{ else if eq $loc "end" }}
|
||||
</div>
|
||||
{{ end }}
|
@ -1,3 +0,0 @@
|
||||
{{ $marginnoteDomIdSuffix := .Ordinal }}<label for="marginnote-{{.Page.File.UniqueID}}-{{ $marginnoteDomIdSuffix }}" class="margin-toggle">⊕</label>
|
||||
<input type="checkbox" id="marginnote-{{.Page.File.UniqueID}}-{{ $marginnoteDomIdSuffix }}" class="margin-toggle"/>
|
||||
<span class="marginnote">{{ .Inner }}</span>
|
@ -1,3 +1 @@
|
||||
{{ $sidenoteDomIdSuffix := .Ordinal }}<label for="sidenote-{{.Page.File.UniqueID}}-{{ $sidenoteDomIdSuffix }}" class="margin-toggle sidenote-number"></label>
|
||||
<input type="checkbox" id="sidenote-{{.Page.File.UniqueID}}-{{ $sidenoteDomIdSuffix }}" class="margin-toggle"/>
|
||||
<span class="sidenote">{{ .Inner }}</span>
|
||||
<span class="sidenote-number"><small class="sidenote">{{ .Inner }}</small></span>
|
||||
|
Reference in New Issue
Block a user