{{ define "main" }} {{ $currentPageUrl := .URL }}
{{ if .Params.categories }} {{ range .Params.categories }} {{ humanize . | upper }} {{ end }} {{end}}

{{ .Title }}

{{ if and .Params.tags .Site.Taxonomies.tags }}
{{ $name := index .Params.tags 0 }} {{ $name := $name | urlize }} {{ $tags := index .Site.Taxonomies.tags $name }}
{{end}}
Last Update: {{ .Lastmod.Format "January 2, 2006" }}
{{ partial "page-edit.html" . }}
{{ end }}