Custom RSS Feed

I am looking at customising my main RSS feed to include only one category of posts. I have called these “main” and created a filter for posts with a title to go into these category.

I am editing index.xml to replace
{{ $list := (where .Pages “Type” “post”) }}
{{ range $list }}
{{ range where (where .Site.Pages ".Site.Taxonomies.categories" "main") "Type" "post" }}

Which I believe is correct, however the RSS does not return any results

Still waking up, but you could try .Site.Taxonomies.categories.main without filtering (as I believe they would have to be posts to be tagged with “main”).

I fixed this btw using

{{ $list := (where .Pages "Type" "post") }}
{{ range .Site.Taxonomies.categories.main }}
1 Like