summaryrefslogtreecommitdiffstats
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html34
1 files changed, 19 insertions, 15 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index f3953af..e1f98a7 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,6 +1,6 @@
{{ partial "header.html" . }}
<div class="article-meta">
-<h1><span class="title">{{ .Title | markdownify }}</span></h1>
+<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>
@@ -9,22 +9,26 @@
{{ .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 }}
+{{ 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 }}
- {{ if (.Page.Param "forwardlinks") }}
- <h2>Links to</h2>
- {{ range (.Page.Param "forwardlinks") }}
- {{ with ($.Site.GetPage (printf "/zettel/%s" .)) }}
- {{ partial "post-element.html" . }}
- {{- end }}
- {{ 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" . }}