I’ve been trying to generate an RSS feed for (Tags, downloads, podcasts) my downlods and podcasts XML feeds are fine, but as soon as I put the tags as rss=true Zola crashes.
The crash output is:
> λ zola serve
> Building site...
> -> Creating 19 pages (0 orphan), 4 sections, and processing 0 images
> thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', src\libcore\option.rs:345:21
> stack backtrace:
> 0: <unknown>
> 1: <unknown>
> 2: <unknown>
> 3: <unknown>
> 4: <unknown>
> 5: <unknown>
> 6: <unknown>
> 7: <unknown>
> 8: <unknown>
> 9: <unknown>
> 10: <unknown>
> 11: <unknown>
> 12: <unknown>
> 13: <unknown>
> 14: <unknown>
> 15: <unknown>
> 16: <unknown>
> 17: <unknown>
> 18: <unknown>
> 19: <unknown>
> 20: <unknown>
> 21: BaseThreadInitThunk
> 22: RtlUserThreadStart
Here is my toml site config taxonomies
> taxonomies = [
> {name = "tags", rss = true, paginate_by = 75},
> {name = "english", rss = false, paginate_by = 5},
> {name = "authors", rss = false, paginate_by = 5},
> {name = "downloads", rss = true, paginate_by = 10},
> {name = "podcast", rss = true, paginate_by = 75},
> ]
I have a custom rss.xml in templates:
> <rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
> <channel>
> <title>TEST</title>
> <link>{{ config.base_url }}</link>
> <description>{{ config.description }}</description>
> <generator>Gutenberg</generator>
> <language>{{ config.default_language }}</language>
> <atom:link href="{{ feed_url }}" rel="self" type="application/rss+xml"/>
> <lastBuildDate>{{ last_build_date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</lastBuildDate>
> {% for page in pages %}
>
> {% if page.taxonomies.podcast %}
>
> {% endif %}
>
> <item>
> <title>{{ page.title }}</title>
> <pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</pubDate>
> <link>{{ page.permalink }}</link>
> <guid>{{ page.permalink }}</guid>
> <description>{% if page.summary %}{{ page.summary }}{% else %}{{ page.content }}{% endif %}</description>
> </item>
> {% endfor %}
> </channel>
> </rss>
which for now mirrors the internal template.
My assumption is that I’ve a poorly formatted front matter, missing text quote or missing comma in an array, but I’ve checked every item in my markdown and cannot find it, the error is saying none but no idea where, I can say that the tags rss.xml output is partially complete, so its not failing to process tags.
Can anyone tell me a way to pinpoint where to look for my error?
Thanks
But for now I’m just ignoring this issue. There are a number of places where Zola just falls over, now I’m using it in anger. I just work around them as I’m on a deadline. For the most part Zola is great, I have no complaints. When I have time I would love to thrash out the edge cases where zola needs some love 