{{ define "main" }}
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }}
{{ .Content }}
{{- $pages := where .Site.RegularPages "Section" "blog" }} {{- $pages = $pages.ByDate.Reverse }} {{- $batch := 6 }}
{{- range $i, $p := $pages }}

{{ $p.Title }}

{{ partial "utils/format-date" $p.Date }}

{{- partial "utils/page-description" $p -}}

{{- end }}
{{- $total := len $pages }} {{- if gt $total $batch }}
{{- end }}
{{- if gt $total $batch }} {{- end }} {{ end }}