-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(gatsby-plugin-feed): respect custom options and require title in config #16814
fix(gatsby-plugin-feed): respect custom options and require title in config #16814
Conversation
f03c619
to
02bac52
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I see that the title
is now which is good. However, I'm not sure this fixes the issue that you've linked to?
Also left a comment!
@@ -4,7 +4,7 @@ import Joi from "@hapi/joi" | |||
const feed = Joi.object({ | |||
output: Joi.string().required(), | |||
query: Joi.string().required(), | |||
title: Joi.string(), | |||
title: Joi.string().required(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation says that "Each feed must include output, query, and title." so this is good
}, | ||
generator, | ||
...rest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it looks like this does indeed fix the issue! Took a while for us to catch it so we need it now!
…equire title configuration
02bac52
to
8738120
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you so much for your work on this @eyalroth 👍
Holy buckets, @eyalroth — we just merged your PR to Gatsby! 💪💜 Gatsby is built by awesome people like you. Let us say “thanks” in two ways:
If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’. Thanks again! |
Published in |
gatsbyjs#16814 and replacing it with a warning
gatsbyjs#16814 and replacing it with a warning
gatsbyjs#16814 and replacing it with a warning
Fixes #15595.
Fixes #16177.
Note that the plugin will now require a title to be configured for each feed, as per the documentation.