Added breadcrumbs in the Docs section and display tags list in blog posts

This commit is contained in:
Julien Dessaux 2021-03-23 22:58:01 +01:00
parent f5eb463f91
commit f0d45fe81f
4 changed files with 28 additions and 1 deletions

View file

@ -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 }}