{{/* section is AKA list */}} {{- define "bodyClass" }} theme-newsletter{{- end }} {{- define "main" }} {{- $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") }} {{- end }}
{{- end }} {{- if gt $paginator.TotalPages 1 }} {{- end }} {{ end }}