{{ define "main" }} <div id="publishing"> <span>{{ .PublishDate | time.Format ":date_long" }}</span> {{ 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 }}