Background
The website I’m creating using zola will need to generate two types of RSS feed.
One which is a regular ATOM feed very much like the template provided by zola and the other is a Podcast audio feed, which supports custom attributes used by iTunes and other podcast platforms.
My approach to the problem
Create a custom RSS.XML in the /templates directory as directed by Zola documentation
The RSS template gets three variables:
Last updated
Pages
Site.Config
I wanted to create a Tera template that did something like this (pseudo code)
{% IF section/taxomony = "PODCAST" THEN %}
..Were using podcast XML
{% ELIF section/taxonomy = "LESSONS" THEN %}
..Were using ATOM XML
{% ENDIF %}
Only I can’t find the section/taxonomy name from the pages (or CAN I ?)
Alternative
I wanted to create a custom RSS.XML in each taxonomy folder
templates\podcasts
list.html
single.html
**rss.xml**
templates\lessons
list.html
single.html
**rss.xml**
Does anyone have another approach? Is it possible to get the section name from pages?
Thanks for any ideas