gatsby-attainlabs-cms 1.0.31 → 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 -5
  2. package/package.json +1 -1
package/gatsby-node.js CHANGED
@@ -29,12 +29,9 @@ const generatePage = async (blocks, layout, isNested) => {
29
29
  import { Slice } from "gatsby";
30
30
  import SEO from "../${isNested && "../"}components/SEO";
31
31
 
32
-
33
-
34
32
  export const Head = ({ pageContext }: any) => {
35
33
  const blocks = pageContext.blocks;
36
34
  const meta = blocks.root.props.meta;
37
- const { title, description } = blocks.root.props.meta;
38
35
  return (
39
36
  <SEO
40
37
  title={meta ? meta.title : ""}
@@ -518,8 +515,10 @@ exports.createPages = async ({ actions, store }, pluginOptions) => {
518
515
  await fse.outputFile(outPath, pageSource);
519
516
 
520
517
  await createPage({
521
- path: folderPath.endsWith("/index")
522
- ? `/${parentPath}`
518
+ path: folderPath.endsWith("index")
519
+ ? parentPath
520
+ ? `/${parentPath}`
521
+ : `/`
523
522
  : `/${folderPath}`,
524
523
  component: outPath,
525
524
  context: { ...page },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-attainlabs-cms",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",