aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorJulien Dessaux2021-03-23 22:58:01 +0100
committerJulien Dessaux2021-03-23 22:58:01 +0100
commitf0d45fe81f0c350dd2805bc0a7543fbd5f3beced (patch)
tree6c7ffe7982fab1b4cd9aff8adaa42ae475c0cabb /layouts/_default
parentCut down code quotes that were too long and disformed the blog template (diff)
downloadwww-f0d45fe81f0c350dd2805bc0a7543fbd5f3beced.tar.gz
www-f0d45fe81f0c350dd2805bc0a7543fbd5f3beced.tar.bz2
www-f0d45fe81f0c350dd2805bc0a7543fbd5f3beced.zip
Added breadcrumbs in the Docs section and display tags list in blog posts
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index aa27b23..354384d 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -2,8 +2,12 @@
<h1>{{ .Title }}</h1>
+<p>
{{ if ne .PublishDate.Year 1 }}{{ .PublishDate.Format "2006-01-02" }} - {{ end }}{{ .Description }}
+{{ if (isset .Params "tags") }}{{ if ge (len .Params.tags) 1 }}<br/>Tag{{ if ge (len .Params.tags) 2 }}s{{ end }}: {{ range .Params.tags }}<a href="/tags/{{ . }}">{{ . }}</a> {{ end }}{{ end }}{{ end }}
+</p>
+
{{ partial "toc.html" . }}
{{ .Content }}