Revert a change in tag pages

Would cause a bug with tag page listing
This commit is contained in:
Angelos Chalaris
2019-08-18 12:51:27 +03:00
parent a71f3426f3
commit 26904954ab

View File

@ -72,11 +72,13 @@ exports.createPages = ({ graphql, actions }) => {
tags.forEach(tag => {
const tagPath = `/tag/${toKebabCase(tag)}/`;
const tagRegex = `/^\\s*${tag}/`;
createPage({
path: tagPath,
component: tagPage,
context: {
tag,
tagRegex,
},
});
});