www/layouts/_default/single.html

16 lines
481 B
HTML
Raw Normal View History

{{ define "main" }}
<h1>{{ .Title }}</h1>
<p>
2021-03-12 19:36:17 +01:00
{{ if ne .PublishDate.Year 1 }}{{ .PublishDate.Format "2006-01-02" }} - {{ end }}{{ .Description }}
2021-11-09 16:46:22 +01:00
{{ if (isset .Params "tags") }}{{ if ge (len .Params.tags) 1 }}<br/>Tag{{ if ge (len .Params.tags) 2 }}s{{ end }}: {{ range .Params.tags }}{{ with $.Site.GetPage (printf "/%s/%s" "tags" .) }}<a href="{{ .Permalink }}">{{ .Title }}</a> {{ end }}{{ end }}{{ end }}{{ end }}
</p>
{{ partial "toc.html" . }}
{{ .Content }}
{{ end }}