Make category page work without errors

This commit is contained in:
Vishnu KS
2020-08-23 12:49:02 +05:30
parent 4d81bf3fe1
commit 1593c00620
2 changed files with 5 additions and 4 deletions

View File

@@ -34,13 +34,12 @@ exports.createPages = async function ({ actions, graphql }) {
}
`,
{categoryName: category.name})
createPage({
path: createSlug(category.name),
component: require.resolve("./src/templates/categoryTemplate.js"),
context: {
categoryName: category.name,
data: data,
data: data.data,
limit: null,
},
})