Gatsby: Best Practice: RSS and Atom Feeds

Created on 26 Oct 2016  路  6Comments  路  Source: gatsbyjs/gatsby

Hello,

I wanted to know what the current standard for adding feed generation is. I honestly think this should be a default feature in the starte blog btw (I'll probably make a pull request once I have a clean solution).

Should it be done via a post-build like here (https://github.com/KyleAMathews/blog/blob/master/post-build.coffee) or during the build process, where u create a feed.js in the pages folder where u generate the feed with React which then gets rendered and converted by gatsby.

I would love some suggestions!

question or discussion

Most helpful comment

@mchandleraz if you're on 1.0 @nicholaswyoung just added a PR for an RSS feed plugin https://github.com/gatsbyjs/gatsby/pull/1073

All 6 comments

Hey! Definitely agree that the starter blog should have a feed generated. I'm very focused on the 1.0 stuff so would love it if you'd take this on.

The feed should definitely be built using postBuild as during the regular build process, Gatsby only creates HTML files (and runs everything through your html.js file) so you wouldn't be able to create the feed there.

Alright, I will do that and make a PR.

Thanks!

@Algram any progress on this? Need some help? I'm considering implementing RSS for my blog.

@mchandleraz if you're on 1.0 @nicholaswyoung just added a PR for an RSS feed plugin https://github.com/gatsbyjs/gatsby/pull/1073

Closing since we got gatsby-plugin-feeds now

Was this page helpful?
0 / 5 - 0 ratings