feat: add RSS and Atom feed options to blog plugin#441
Conversation
Adds explicit feedOptions to the blog preset config. Exposes /blog/rss.xml, /blog/atom.xml and zh equivalents. Closes Project-HAMi#147 Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mesutoezdil The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Deploy Preview for project-hami ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Nice improvement, and thanks for verifying both EN and ZH feeds in the build output. One i18n point worth flagging.
For a Chinese-audience feed, a localized title and description would read better in a feed reader. Docusaurus doesn't support per-locale
Not a blocker for this PR. Just raising it because ZH subscribers will see the English strings in their feed reader. |
|
Thanks for the review. Keeping shared metadata as the baseline for now. The English strings in ZH feed readers are acceptable at this stage. Opened #452 to track ZH-localized feedOptions via a second blog plugin instance. |
Adds explicit
feedOptionsto the blog preset indocusaurus.config.js.What changes
type: ['rss', 'atom']- generates both feed formatstitle,description,copyright- production-ready feed metadata/blog/rss.xml,/blog/atom.xmlfor EN/zh/blog/rss.xml,/zh/blog/atom.xmlfor ZHBoth feeds verified present in build output.
Closes #147