Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Commit

Permalink
Remove trailing slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
laneparton committed Sep 27, 2021
1 parent c556fb6 commit 104d05a
Show file tree
Hide file tree
Showing 4 changed files with 1,420 additions and 34 deletions.
1 change: 1 addition & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
},
},
plugins: [
`gatsby-plugin-remove-trailing-slashes`,
`gatsby-plugin-image`,
{
resolve: `gatsby-source-filesystem`,
Expand Down
2 changes: 1 addition & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ exports.onCreateNode = ({ node, actions, getNode }) => {
const { createNodeField } = actions

if (node.internal.type === `MarkdownRemark`) {
const value = createFilePath({ node, getNode })
const value = createFilePath({ node, getNode, trailingSlash: false })

createNodeField({
name: `slug`,
Expand Down
Loading

0 comments on commit 104d05a

Please sign in to comment.