{{ partial "header.html" . }}
{{ $pages := .Pages }} {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }} {{ $paginator := .Paginate (where $pages "Section" "!=" "") }} {{ range $paginator.Pages }}
{{ with .Params.categories }} {{ range first 1 . }} {{ . }} {{ end }} {{ else }} {{ default "Uncategorized" .Site.Params.text.uncategorized }} {{ end }}

{{ .Title }}

{{ if .Params.author }}{{ partial "author_names.html" . }} / {{ end }} {{ .Date.Format "2006-01-02" }}
{{ end }} {{ end }} {{ end }} {{ with .Description }} {{ $.Scratch.Set "summary" (markdownify .) }} {{ else }} {{ $.Scratch.Set "summary" ((delimit (findRE "((.|\n)*?

\\s*)+" .Content) "[…] ") | plainify | truncate (default 200 .Site.Params.summary_length) (default " …" .Site.Params.text.truncated ) | replaceRE "&" "&" | safeHTML) }} {{ end }} {{ $.Scratch.Get "summary" }}
{{ end }} {{ partial "footer.html" . }}