{{- define "main" }} {{- if .Content }}
{{- if not (.Param "disableAnchoredHeadings") }} {{- partial "anchored_headings.html" .Content -}} {{- else }}{{ .Content }}{{ end }}
{{- end }} {{- $pages := .Pages }} {{- $pages = where $pages "Params.hidden" "!=" true }} {{/* related issue: https://github.com/gohugoio/hugo/issues/9003 */}} {{ $paginator := "" }} {{ if (.Param "paginate") }} {{- $paginator = .Paginate $pages (.Param "paginate") }} {{ else }} {{- $paginator = .Paginate $pages }} {{ end }} {{- $term := .Data.Term }} {{- range $index, $page := $paginator.Pages }}

{{- .Title }} {{- if .Draft }}  [Draft]{{- end }} {{- if .Weight }}  [Pinned]{{- end }}

{{- if not (.Param "hideMeta") }} {{- partial "post_meta.html" . -}} {{- end }}
{{ .Content }}
{{- end }} {{- if gt $paginator.TotalPages 1 }} {{- end }} {{- end }}{{- /* end main */ -}}