{{ define "main" }}
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }}
{{ partial "custom/page-begin.html" . }} {{ partial "breadcrumb.html" (dict "page" . "enable" false) }}
{{ if .Title }}

{{ .Title }}

{{ end }}
{{ partial "custom/content-begin.html" . }} {{ .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 -}} {{- $pageCount := len $paginator.Pages -}} {{- range $index, $page := $paginator.Pages }}

{{ .Title }}

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

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

{{ partial "utils/format-date" .Date }} {{ if and .Lastmod (ne (.Date.Format "2006-01-02") (.Lastmod.Format "2006-01-02")) }} 修改于 {{ partial "utils/format-date" .Lastmod }} {{ end }}

{{- if lt (add $index 1) $pageCount }}
{{- end -}} {{ end -}} {{- if gt $paginator.TotalPages 1 -}} {{ partial "components/blog-pager.html" $paginator }} {{- end -}} {{ partial "custom/page-end.html" . }}
{{- end -}}