{{ define "main" }}

{{ .Title }}

{{- $pub := .Date.Format "2006-01-02" -}} {{- $mod := "" -}} {{- if (not .GitInfo) }} {{- $mod = .Lastmod.Format "2006-01-02" -}} {{ else }} {{- $mod = .Page.GitInfo.CommitDate.Format "2006-01-02" -}} {{ end -}} {{ if eq $pub $mod }}
published {{ $pub }}
{{ else }}
published {{ $pub }}, last modified {{ $mod }}
{{ end }} {{ if .Params.tags }}
{{ if eq (len .Params.tags) 1 }} in tag {{ else }} in tags {{ end }} {{ range $idx, $tag := .Params.tags }} {{ $tag }} {{ end }}
{{ end }}
{{ if .Params.toc }}
Table of Contents {{ .TableOfContents }}
{{ end }} {{ .Content }} {{ end }}