{{ define "main" }}

{{ .Title }}

{{ if .PublishDate }}
Published: {{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }}, last updated: {{ .Lastmod.Format "Jan 2, 2006" }}{{ end }}
{{ end }}
Reading time: {{ .ReadingTime }} min
{{- with .Params.tags -}}
Tags: {{ range . -}}{{- with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}{{ .Title }} {{- end -}}{{- end -}}
{{- end -}} {{ .Content }}{{ end }}