gatsby-attainlabs-cms 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gatsby-node.js +4 -2
- package/package.json +1 -1
package/gatsby-node.js
CHANGED
|
@@ -515,8 +515,10 @@ exports.createPages = async ({ actions, store }, pluginOptions) => {
|
|
|
515
515
|
await fse.outputFile(outPath, pageSource);
|
|
516
516
|
|
|
517
517
|
await createPage({
|
|
518
|
-
path: folderPath.endsWith("
|
|
519
|
-
?
|
|
518
|
+
path: folderPath.endsWith("index")
|
|
519
|
+
? parentPath
|
|
520
|
+
? `/${parentPath}`
|
|
521
|
+
: `/`
|
|
520
522
|
: `/${folderPath}`,
|
|
521
523
|
component: outPath,
|
|
522
524
|
context: { ...page },
|