summaryrefslogtreecommitdiffstats
path: root/layouts/_default/single.html
blob: e1f98a71a4acf7548805307fe1780d7d27579a0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{{ partial "header.html" . }}
<div class="article-meta">
<h1><span class="title">{{ .Title | markdownify }}</span>{{ if .Params.zettelid }}<a class="zettel-link" href="{{ .RelPermalink }}"> [#{{ .Params.zettelid }}]</a>{{ end }}</h1>
<!--{{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }}-->
{{ if (gt .Params.date 0) }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }}
</div>

<main>
{{ .Content }}
</main>

{{ with (.Page.Param "backlinks") }}
<h2>Referenced from</h2>
<table class="post-list">
{{ range . }}
  {{ with ($.Site.GetPage (printf "/zettel/%s" .)) }}
  {{ partial "post-element" . }}
  {{ end }}
{{ end }}
</table>
{{ end }}

{{ with (.Page.Param "forwardlinks") }}
<h2>Links to</h2>
<table class="post-list">
{{ range . }}
  {{ with ($.Site.GetPage (printf "/zettel/%s" .)) }}
  {{ partial "post-element" . }}
  {{ end }}
{{ end }}
</table>
{{ end }}

{{ partial "footer.html" . }}