-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix(rss): generate slug for rss #70
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
Conversation
KyleAMathews
left a comment
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.
Nice!
| } | ||
|
|
||
| exports.onCreateNode = ({ node, boundActionCreators, getNode }) => { | ||
| const { createNodeField } = boundActionCreators |
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.
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.
@KyleAMathews Are you referring to https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-filesystem/src/create-file-path.js#L35-L46, as a suggestion for what should be implemented here?
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.
No use it directly. The function is exported from gatsby-source-filesystem and intended to be used for creating slugs from files.
|
@KyleAMathews Take a look now and let me know what you think. |
|
Looks great! |
|
Did a bit more work to make it use the new auto-generated slugs instead of the path from the frontmatter 6d51a2c |
|
@KyleAMathews Looks good! 👍 |
add link to bottom of RSS feed articles
This PR should allow the RSS plugin, applied in #68, to run cleanly.