forked from mirrors/hugo-tufte
Merge pull request #11 from dwarkeshsp/master
Allows adding link to the citation in the epigraph
This commit is contained in:
commit
3d14a3cc3e
3 changed files with 14 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
<header class="brand">
|
||||
<h1>{{ .Site.Title}}</h1>
|
||||
<a href="{{ .Site.BaseURL }}"><h1>{{ .Site.Title}}</h1></a>
|
||||
<h2>{{ .Site.Params.subtitle }}</h2>
|
||||
{{ partial "nav.html" . }}
|
||||
<hr>
|
||||
<hr />
|
||||
</header>
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
{{ if .IsNamedParams }}
|
||||
<footer>
|
||||
{{ with .Get "pre" }}{{ . }}{{ end }}
|
||||
{{ with .Get "link" }}<a href={{ . }}>{{ end }}
|
||||
{{ with .Get "cite" }}<cite>{{ . }}</cite>{{ end }}
|
||||
</a>
|
||||
{{ with .Get "post" }}{{ . }}{{ end }}
|
||||
</footer>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
{{ $marginnoteDomIdSuffix := .Ordinal }}
|
||||
<label for="marginnote-{{.Page.File.UniqueID}}-{{ $marginnoteDomIdSuffix }}">
|
||||
class="margin-toggle">⊕
|
||||
<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>
|
||||
<input
|
||||
type="checkbox"
|
||||
id="marginnote-{{.Page.File.UniqueID}}-{{ $marginnoteDomIdSuffix }}"
|
||||
class="margin-toggle"
|
||||
/>
|
||||
<span class="marginnote">{{ .Inner }}</span>
|
||||
|
|
Loading…
Reference in a new issue