{{- if .Param "subtitleFile" -}}
{{ template "partials/subtitle.html" . }}
{{- else if isset .Site.Params "subtitle" -}}
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
{{ range $paginator.Pages }}
{{ .Site.Params.Subtitle | markdownify }}
{{- end -}}{{.Title}}
{{ template "partials/pagedescription.html" . }}