aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
blob: db2c555c5b40cc253c61bb487bf3eec4992f31c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{ define "main" }}

<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 }}{{ with $.Site.GetPage (printf "/%s/%s" "tags" .) }}<a href="{{ .Permalink }}">{{ .Title }}</a> {{ end }}{{ end }}{{ end }}{{ end }}
</p>

{{ partial "toc.html" . }}

{{ .Content }}

{{ end }}