Ghost: Can't custom rss

Created on 18 Oct 2019  路  2Comments  路  Source: TryGhost/Ghost

Issue Summary

The custom rss doesn't work

To Reproduce

  1. Do as this article asks: https://ghost.org/tutorials/custom-rss-feed/
  2. Visit the custom rss url https://domainname/podcast/rss, and you will get the original rss, not custom rss.

Technical details:

  • Ghost Version: 2.31.0 (development)
  • Node Version: 10.16
  • Browser/OS: Firefox on macOS catalina
  • Database: Sqlite3

More details

df0b5c91bffd890604a43e5aaf1ce4852c670059

Files within my theme, and code in routes.yaml

routes:

/podcast/rss/:
  template: podcast/rss
  content_type: text/xml

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

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

Most helpful comment

Your routes.yaml looks like it's not formatted correctly, can you try like this?

routes:
  /podcast/rss/:
    template: podcast/rss
    content_type: text/xml

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

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

All 2 comments

Your routes.yaml looks like it's not formatted correctly, can you try like this?

routes:
  /podcast/rss/:
    template: podcast/rss
    content_type: text/xml

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

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

@allouis Awesome, thank you so much.

Was this page helpful?
0 / 5 - 0 ratings