owid-grapher
owid-grapher copied to clipboard
Data insights RSS feed
Resolves https://github.com/owid/owid-grapher/issues/3365
Changes:
- Adds a new data insight feed page at
/atom-data-insights.xml
- Adds logic to link to this page in the
<head>
if on/data-insights
or a child thereof - Updates UI to link to the new atom feed
To test:
- Have some data insights published
- Go to http://localhost:3030/atom-data-insights.xml and confirm it looks good
- Check for regressions in http://localhost:3030/atom.xml
- View source on http://localhost:3030/data-insights and http://localhost:3030/data-insights/your-data-insight-slug and check that the atom feed link is updated
- Check for regressions on 2 other pages
- Run
node itsJustJavascript/baker/buildLocalBake.js --steps rss
and confirm the output looks good