{{- $page := .page -}} {{- $isMain := not .subitem -}} {{ with $page }}
{{- if $isMain }}

{{ .Title }}

{{- else }}

{{ .Title }}

{{- end }} {{- with .Params.subtitle }} {{ . }} {{- end }}
{{ .Date.Format "2006-01-02 15:04" }} {{- with .Params.location }} {{ . }} {{- end }} {{- with .Page.GetTerms "tags" }} {{- range . }} {{ .Title }} {{- end }} {{- end }}
{{- with .Page.GetTerms "authors" }} {{- range . }} {{ .Title }} {{- end }} {{- end }}
{{- end }}