Skip to content

Commit

Permalink
Merge pull request #17 from Rolalove/patch-1
Browse files Browse the repository at this point in the history
Fixed the URL generated for the RSS feed, the link is now pointing to…
  • Loading branch information
Oluwasetemi committed Aug 6, 2024
2 parents 28180f3 + 19c3457 commit bd838d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gatsby-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ function getBlogFeed({ filePathRegex, blogUrl, ...overrides }) {
serialize: ({ query: { allMdx } }) => {
const stripSlash = slug => (slug.startsWith('/') ? slug.slice(1) : slug)
return allMdx.edges.map(edge => {
const url = `${siteUrl}/${stripSlash(edge.node.fields.slug)}`
const url = `${siteUrl}/blog/${stripSlash(edge.node.fields.slug)}`


return {
...edge.node.frontmatter,
Expand Down

0 comments on commit bd838d7

Please sign in to comment.