You can use the build-in function encodeURI(string) for your link: If your site has none-English link (or none-ASCII link), you may need to encode URI in advance. Only pages that satisfied the regular expression will have feed reference included. This string will be used to build a RegExp, and this regular expression will be used to test the pathname of current page. You can customize this behavior by providing an extra field match of type string. The output field in your feed object allows you to customize the filename for your RSS feed, and title for the name of your site’s RSS feed.īy default, feed is referenced in every page. In this example, the RSS content comes from Markdown files sourced from your site, and queried with the key allMarkdownRemark and its associated filters and fields. It also includes a feeds array with at least one object containing a GraphQL query and serialize method, which allows you to output a custom RSS feed structure. This snippet contains a custom gatsby-plugin-feed setup in gatsby-config.js to query metadata for your site, like its title and siteUrl. structure) output by the plugin to work with your website’s content, you can start with the following code: To customize the default feed schema (a.k.a.
The good news is you can accommodate these scenarios and more in gatsby-config.js and gatsby-node.js.
By default, the generated RSS feed path is /rss.xml, but the plugin exposes options to configure this default functionality.įor basic setups with Markdown content like the gatsby-starter-blog, that’s all you need! However, you can craft a custom RSS feed schema using custom code in your gatsby-node.js and gatsby-config.js files. Next run a build ( npm run build) since the RSS feed generation will only happen for production builds. Here’s an example of how you could implement this plugin with Markdown, but for other sources, you will need a way to uniquely identify content-typically a URL or slug. Once installation is complete, you can now add this plugin to your site’s config file, like so:
To install this package, run the following command: How to use gatsby-plugin-feed To generate an RSS feed, you can use the gatsby-plugin-feed package. Think of it as a syndicated distribution channel for your site’s content. Today’s Brave app for iOS also offers open search.An RSS Feed is a standard XML file listing a website’s content in a subscribable format, allowing readers to consume your content in news aggregators, also called feed reader apps. The Brave browser fetches it without ever hitting Brave servers, and Brave never knows anything about your chosen RSS feeds. The RSS feed content is collected directly from the feed source. We will soon have options for unlimited feeds.Īs always, Brave protects your personal data and browsing activities in the Brave browser, on your device. You can add up to 5 feeds in Your Sources. There is also an option to add a feed via the share panel which you’ll find when you are visiting a web site that includes its RSS feed in the autodiscovery tag on the page.
Simply tap “Add Source” and then search by website domain name or manually add the full URL of your favorite feed if you know it.In the browser Settings, the Brave News feature has a new “Your Sources” section.The process to manually add RSS feeds is simple: Brave News was launched last December, and currently features over 300 content sources in 16 categories.
This gives users the ability to fully customize the content in their stream by simply adding the RSS feed of their favorite publisher, creator, or podcaster.
This option is available today with Brave’s iOS app update (version 1.24), and will soon be coming to the Brave desktop browser. Brave News, the privacy-preserving news reader integrated into the Brave browser, now features RSS feeds for users.