blob: 035d58919c5256dea3f1208730c897aeb4bdb4aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{{ define "main" }}
<div id="publishing">
{{ if ne .Date (time "0001-01-01") }}
<span>{{ .PublishDate | time.Format ":date_long" }}</span>
{{ end }}
{{ if and (isset .Params "lastmod") (ne .Lastmod .PublishDate) }}
<br>
<span>Revised: {{ .Lastmod | time.Format ":date_long" }}</span>
{{ end }}
{{ if isset .Params "tags" }}
<br>
<span>Tags:</span>
{{- range sort .Params.tags }}
<a href="/tags/{{ . }}">{{ . | humanize | title }}</a>
{{- end }}
{{ end }}
</div>
{{ .Content }}
{{ end }}
|