blob: f3953afe28193505f0b4424a5226aebe092f99bc (
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
|
{{ partial "header.html" . }}
<div class="article-meta">
<h1><span class="title">{{ .Title | markdownify }}</span></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>
{{ if (.Page.Param "backlinks") }}
<h2>Referenced from</h2>
{{ range (.Page.Param "backlinks") }}
{{ with ($.Site.GetPage (printf "/zettel/%s" .)) }}
{{ partial "post-element.html" . }}
{{- end }}
{{ end }}
{{ end }}
{{ if (.Page.Param "forwardlinks") }}
<h2>Links to</h2>
{{ range (.Page.Param "forwardlinks") }}
{{ with ($.Site.GetPage (printf "/zettel/%s" .)) }}
{{ partial "post-element.html" . }}
{{- end }}
{{ end }}
{{ end }}
{{ partial "footer.html" . }}
|