-
-
Save rayriffy/20d1e06a294f3adf83e536efa4f49566 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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