{{- $ctx := .ctx }} {{- $pages := or .pages $ctx.RegularPages }}
{{ "" | safeHTML }} {{ partial "components/feed-header.html" $ctx }} {{- if and (eq $ctx.Section "tags") (eq $ctx.Kind "term") }} {{- "" | safeHTML }} {{- $pages := slice }} {{- $tagSet := slice $ctx.Name | append $ctx.Params.tag_aliases }} {{- $pages = where $ctx.Site.RegularPages "Params.tags" "intersect" $tagSet }} {{ partial "components/feed-entries-compact.html" $ctx.Pages }} {{- else if eq $ctx.Section "series" }} {{ $pages = sort $ctx.RegularPages "Params.series_part" "asc" }} {{ partial "components/feed-entries-in-series.html" $pages }} {{- else }} {{ partial "components/feed-entries-compact.html" $pages }} {{- end }}