{{/* section is AKA list */}} {{- define "main" }}

{{ .Title }}

{{ .Description | markdownify }}
{{- $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 }} {{- range $index, $page := $paginator.Pages }}

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

{{- if (ne (.Param "hideSummary") true) }}
{{ if .Description }}

{{ .Description | plainify | htmlUnescape }}

{{ else }}

{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}

{{ end }}
{{- end }} {{- if not (.Param "hideMeta") }}
{{- partial "post_meta.html" . -}}
{{- end }}
{{- end }} {{- if gt $paginator.TotalPages 1 }} {{- end }} {{- with .Param "archivesSlug" }}
Archives
{{- end }}
{{ end }}