{{ define "main" }}
{{ if or .Site.Params.options.listCategoryFilter .Site.Params.options.listTagFilter }}
{{ if .Site.Params.options.listCategoryFilter }}
{{range ($.Site.GetPage "taxonomyTerm" "categories").Pages }} {{.Title}}  {{end}}
{{ end }} {{ if .Site.Params.options.listTagFilter }}
{{range ($.Site.GetPage "taxonomyTerm" "tags").Pages }} {{.Title}}  {{end}}
{{ end }}
{{ end }} {{ if ne .Kind "taxonomy" }} {{ range .Pages }}
{{ if isset .Params "images" }} {{ with .Resources.GetMatch (index .Params.Images 0) }} {{ $image := .Fill "600x300 Center webp" }} featured image {{.Title }} {{ end }} {{ end }}

{{ .Title }}

{{ if isset .Params "categories" }} {{ range .Params.categories }} {{ . }} {{end}} {{ end }} {{ if isset .Params "tags" }} {{ range .Params.tags }} {{ . }} {{ end }} {{ end }}
{{ with .Params.description }} {{ . }} {{ else }} {{ .Summary | truncate 400 }} {{ end }}
{{ end }} {{ end }}
{{ end }}