{{ define "main" }} {{- $readMore := (T "readMore") | default "Read more →" -}}
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }}

{{ if .Title }}

{{ .Title }}

{{ end }}
{{ .Content }}
{{- $pages := partial "utils/sort-pages" (dict "page" . "by" site.Params.blog.list.sortBy "order" site.Params.blog.list.sortOrder) -}} {{- $pagerSize := site.Params.blog.list.pagerSize | default 10 -}} {{- $paginator := .Paginate $pages $pagerSize -}} {{- range $paginator.Pages }}

{{ .Title }}

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

{{- partial "utils/page-description" . -}}

{{- $readMore -}}

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

{{ end -}} {{- if gt $paginator.TotalPages 1 -}} {{ partial "components/blog-pager.html" $paginator }} {{- end -}}
{{- end -}}