Skip to content

Commit 31cb07c

Browse files
author
Mark Roxberry
committed
fix(gatsby-node): update tag path formatting to lowercase and replace spaces with hyphens
1 parent bad42da commit 31cb07c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ module.exports.createPages = async ({ graphql, actions, reporter }) => {
126126
// Make tag pages
127127
tags.forEach(tag => {
128128
createPage({
129-
path: `/tags/${_.kebabCase(tag.fieldValue)}/`,
129+
path: `/tags/${tag.fieldValue.toLowerCase().replace(/\s+/g, '-')}/`,
130130
component: tagTemplate,
131131
context: {
132132
tag: tag.fieldValue,

0 commit comments

Comments
 (0)