Closed PaulBadeuille closed 5 years ago
Hiya!
This issue has gone quiet. Spooky quiet. 👻
We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contributefor more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 💪💜
Hey again!
It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it.
Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY
. Please feel free to reopen this issue or create a new one if you need anything else.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks again for being part of the Gatsby community!
I can confirm this is happening, as @Boogy62 described: Adding a setup
method for gatsby-plugin-feed
options in gatsby-config
would 'reset' the following fields:
You can also return an empty object for the setup
method like so to get the same results:
...
setup: () => ({}),
...
So I suppose we have two options:
setup
method like so:...
setup: () => ({
title: 'Title of your site or feed',
description: 'A short description of the feed.',
generator: 'Feed generator.',
feed_url: 'Url to the rss feed.',
site_url: 'Url to the site that the feed is for.',
image_url: 'Small image for feed readers to use.',
docs: 'Url to documentation on this feed.',
managingEditor: 'Who manages content in this feed.',
webMaster: 'Who manages feed availability and technical support.',
copyright: 'Copyright information for this feed.',
language: 'The language of the content of this feed.',
categories: [],
pubDate: 'The publication date for content in the feed',
ttl: 'Number of minutes feed can be cached before refreshing from source.',
hub: 'hub url Where is the PubSubHub hub located.',
custom_namespaces: {},
custom_elements: [],
}),
...
The above options are from https://www.npmjs.com/package/rss#feedoptions
This means we have to update the documentation to inform users that if they wish to use the setup method it will override all other options, whether or not they are explicitly set (the generator
tag is set by the plugin automatically, but reset when setup
is used).
setup
method:Which one of these is preferred by the Gatsby team?
custom_namespaces
or custom_elements
.
Description
As explained in docs, when I want to add custom_elements with setup function in RSS feeds with gatsby-plugin-feed, my RSS title, description and link become "Untitled RSS Feed". When I don't use custom_elements and custom setup, I have the right title.
Steps to reproduce
Just use custom setup function as explained here https://www.gatsbyjs.org/docs/adding-an-rss-feed/
Expected result
Title, description and link should are correct.
Actual result
<title><![CDATA[Untitled RSS Feed]]></title><description><![CDATA[Untitled RSS Feed]]></description><link>http://github.com/dylang/node-rss</link>
Environment