Add custom RSS/Atom feed for blog #523
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is an Atom feed adapted from https://github.com/jekyll/jekyll-feed/blob/master/lib/jekyll-feed/feed.xml (which is the template currently used for the blog through jekyll-feed)
The main reason for this is that there is a bug in jekyll-feed that means future posts show up in the RSS feed when they're not supposed to (they are hidden for the default
postscollection, but we use a non-default collection for our blog). However, jekyll-feed has not been updated in a couple of years and doesn't look like it has an active maintainer, so while I have raised a PR to fix the bug there (jekyll/jekyll-feed#425), I am not optimistic about it being fixed soon.Hence, I have adapted their feed template to suit our blog, including hiding future posts. This means that posts will be added to the feed at the same time as they go live on the website.
I don't think that this feed will require a lot of maintenance once set up. It will take over at the same link as the current feed (https://www.researchobject.org/ro-crate/feed/blog.xml).