Skip to content

Instantly share code, notes, and snippets.

@rayriffy rayriffy/index.js Secret
Created May 4, 2019

Embed
What would you like to do?
/**
* Creating tag listing and pages recursively
*/
_.each(tagStack, edge => {
const nodes = tagFilter(healthyResults, edge.node.name)
createSlugPages(edge.node.prefix, edge.node.name, nodes)
createPage({
path: `${edge.node.prefix}`,
component: path.resolve('./src/templates/tag.js'),
context: {
prefix: edge.node.prefix,
subtitle: `${edge.node.name}`,
raw: nodes,
},
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.