{{ $dateTime := .PublishDate.Format "2006-01-02" }} {{ $lastmodTime := .Lastmod.Format "2006-01-02" }} {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
{{ if .PublishDate }} {{ if and (ne $lastmodTime $dateTime) (gt .Lastmod .Date) }} (first posted ) {{ else }} Date Published: {{ end }} {{ end }} {{ with .Params.tags }}
Tags: {{ range . }} {{ $href := print "/tags/" (urlize .) }} {{ . }} {{ end }}
{{ end }}