mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-12-23 22:09:44 +01:00
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">
|
<header class="brand">
|
||||||
<h1>{{ .Site.Title}}</h1>
|
<a href="{{ .Site.BaseURL }}"><h1>{{ .Site.Title}}</h1></a>
|
||||||
<h2>{{ .Site.Params.subtitle }}</h2>
|
<h2>{{ .Site.Params.subtitle }}</h2>
|
||||||
{{ partial "nav.html" . }}
|
{{ partial "nav.html" . }}
|
||||||
<hr>
|
<hr />
|
||||||
</header>
|
</header>
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
{{ if .IsNamedParams }}
|
{{ if .IsNamedParams }}
|
||||||
<footer>
|
<footer>
|
||||||
{{ with .Get "pre" }}{{ . }}{{ end }}
|
{{ with .Get "pre" }}{{ . }}{{ end }}
|
||||||
|
{{ with .Get "link" }}<a href={{ . }}>{{ end }}
|
||||||
{{ with .Get "cite" }}<cite>{{ . }}</cite>{{ end }}
|
{{ with .Get "cite" }}<cite>{{ . }}</cite>{{ end }}
|
||||||
|
</a>
|
||||||
{{ with .Get "post" }}{{ . }}{{ end }}
|
{{ with .Get "post" }}{{ . }}{{ end }}
|
||||||
</footer>
|
</footer>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
{{ $marginnoteDomIdSuffix := .Ordinal }}
|
{{ $marginnoteDomIdSuffix := .Ordinal }}
|
||||||
<label for="marginnote-{{.Page.File.UniqueID}}-{{ $marginnoteDomIdSuffix }}">
|
<label
|
||||||
class="margin-toggle">⊕
|
for="marginnote-{{.Page.File.UniqueID}}-{{ $marginnoteDomIdSuffix }}"
|
||||||
|
class="margin-toggle"
|
||||||
|
>⊕
|
||||||
</label>
|
</label>
|
||||||
<input type="checkbox" id="marginnote-{{.Page.File.UniqueID}}-{{ $marginnoteDomIdSuffix }}" class="margin-toggle" />
|
<input
|
||||||
<span class="marginnote">{{ .Inner }}</span>
|
type="checkbox"
|
||||||
|
id="marginnote-{{.Page.File.UniqueID}}-{{ $marginnoteDomIdSuffix }}"
|
||||||
|
class="margin-toggle"
|
||||||
|
/>
|
||||||
|
<span class="marginnote">{{ .Inner }}</span>
|
||||||
|
|
Loading…
Reference in a new issue