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.
Files changed (2) hide show
  1. package/gatsby-node.js +4 -2
  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("/index")
519
- ? `/${parentPath}`
518
+ path: folderPath.endsWith("index")
519
+ ? parentPath
520
+ ? `/${parentPath}`
521
+ : `/`
520
522
  : `/${folderPath}`,
521
523
  component: outPath,
522
524
  context: { ...page },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-attainlabs-cms",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",