{{ define "header" }} {{ partial "header.html" . }} {{ end }} {{ define "content" }}
{{ $paginator := .Paginate (where .Data.Pages "Type" "posts") }} {{ range $paginator.Pages }} {{ if .Draft }} {{ .Scratch.Set "draftPage" true }} {{ else }} {{ .Scratch.Set "draftPage" false }} {{ end }}
{{ .Title }} {{ .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") }} {{ if .Description }} {{ .Description }} {{ else }} {{ .Summary }} {{ end }} {{ if .Truncated }} ... {{ end }}
{{ .Scratch.Delete "draftPage" }} {{ end }}
{{ partial "pagination.html" . }} {{ end }} {{ define "footer" }} {{ if .Site.GoogleAnalytics }} {{ template "_internal/google_analytics_async.html" . }} {{ end }} {{ partial "footer/font-awesome-js.html" . }} {{ end }}