{{ define "main" }}
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }}
{{ partial "breadcrumb.html" (dict "page" . "enable" false) }}
{{ .Content }}
{{- $pages := partial "utils/sort-pages" (dict "page" . "by" site.Params.blog.list.sortBy "order" site.Params.blog.list.sortOrder) -}} {{- $batch := site.Params.blog.list.pagerSize | default 10 }} {{- $total := len $pages }}
{{- range $i, $p := $pages }}

{{ $p.Title }}

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

{{ if site.Params.blog.list.displayTags }}
{{ partial "tags.html" (dict "context" $p) }}
{{ end }}

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

{{- end }}
{{- if gt $total $batch }}
{{- end }}
{{- if gt $total $batch }} {{- end }} {{- end }}