diff options
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..f3953af --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,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" . }} |