haysclark / gatsby-starter-casper

The Casper theme v1.4 ported to GatsbyJS

Home Page:https://haysclark.github.io/gatsby-starter-casper/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to change data in main page once edited in individual blog posts

Anaizing opened this issue · comments

Main landing page

image

First blog link on landing page (Big Test)

image

expected result

On editing title, tags etc they should change on main landing page
image

issue

When said data is edited it throws an error

image

and if it doesn't it still does not update the main landing page to match the metadata

I deployed it here if you want to see

temp blog

Currently using
Windows 10
node v8.9.1
yarn 1.5.1
gatsby 1.9.130
gatsby-cli 1.1.45

@Anaizing Thank you for the very professionally ticket with pictures. Please forgive my slow turnaround on this issue. If possible, could you push your work to GitHub so I can see your code and content? You'll need to delete the .git folder if you just have a clone of this repo. Alternatively, you can attach a ZIP file to your content, ideally, don't include the .git or node_modules folder if possible.

Thank you for clarifying all of the libraries and OS you are using, I don't think any of the libraries are the issue; however, it will help me recreate your environment on my computer. 👍

The error message is saying that you have a post that is missing the frontmatter data. This is likely because your new post has some illegal YAML. Currently, gatsby-starter-casper does not have much data validation. The Markdown files are parsed by the gatsby-transformer-remark plug-in, which is configured in the projects gatsby-config.js file. I would start by double checking your YAML is valid. It's hard to tell from a screenshot if you have a hidden TAB in your tags list, which would upset the YAML parser.

I would also avoid using any uppercase tags or author IDs. The 'tags' might not be a big issue, but having capitalized AuthorIDs likely is causing some of your woes: e.g. author: "Anai", should be author: "anai",. Also, make sure that ALL your Author files are also lower-case. In Windows you might have to rename the file twice to accomplish this, e.g.: Anai.json to _anai.json to anai.json. Make sure the ID inside the JSON file is also lowercase: anai. Google OS case sensitivity to learn more. 👍

Let me know if that helps.

Thank so much, that was a great help!