The custom rss doesn't work

I want to create a podcast rss, and I did as this url shows:

In routes.yaml


  template: podcast/rss
  content_type: text/xml

    permalink: /{slug}/
    template: index
    filter: tag:-podcast
    permalink: /podcast/{slug}/
    filter: tag:podcast

  tag: /tag/{slug}/
  author: /author/{slug}/

and I created a folder called podcast, and there’s a file called rss.hbs with content

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="" xmlns:wfw=""
    xmlns:dc="" xmlns:atom="" xmlns:sy=""
    xmlns:slash="" xmlns:itunes=""
    xmlns:rawvoice="" xmlns:googleplay="">

<copyright>{{@blog.title}} Copyright {{date format="YYYY"}}</copyright>
<atom:link href="{{@blog.url}}/podcast/rss/" rel="self" type="application/rss+xml" />
<lastBuildDate>{{date format="ddd, DD MMM YYYY HH:mm:ss ZZ"}}</lastBuildDate>
    <itunes:name>Your Name</itunes:name>
<itunes:image href="{{img_url @blog.icon absolute="true"}}"/>
<itunes:category text="Technology"></itunes:category>

{{#get "posts" filter="tag:podcast" include="tags,authors" as |episode|}}
    {{#foreach episode}}
        <link>{{url absolute="true"}}</link>
        <pubDate>{{date format="ddd, DD MMM YYYY HH:mm:ss ZZ"}}</pubDate>
        <guid isPermaLink="false">{{id}}</guid>
        <category><![CDATA[ {{primary_tag}} ]]></category>
        <content:encoded><![CDATA[ {{content}} ]]></content:encoded>
        <enclosure url="{{og_description}}" length="0" type="audio/mpeg"/>
        <itunes:summary><![CDATA[ {{content}} ]]></itunes:summary>


but the url still shows the rss content without the rss template? How can I fix this?

Hi there :wave:. I think it might be how you’ve named the template, you’ve set the value to podcast/rss so you’ll need to put the rss.hbs template into a podcast folder within your theme. Either that or change the value to just rss :slightly_smiling_face:

@DavidDarnes Of course, I put the rss.hbs template into a podcast folder within my theme, and I also tried the way of changing the value to just rss, none of them works.

BTW. there’s a typo in your reply, postcast should be podcast, right?

Fixed :slight_smile:

I saw
Nice one, but those types of questions are best asked here so others can benefit :slightly_smiling_face:

Yea I made a typo with podcast, fixed it. Thanks!