0

I'm unable to figure out how to write the Netlify CMS config.yml for a posts folder that looks like folder structure

The structure is inspired by the Gatsby Personal Blog Starter. My blog content looks like https://ibb.co/cxXL9MJ:

This is my current config.yml, gatsby-config.js and gatsby-node.js.

You can browse the whole branch for more details.

Arthur
  • 108
  • 8
  • hhmm, just a guess here, maybe netlifyCMS doesn't understand the nested folder structure. Could you convert those folder into just file, i.e `2019-01-10-blog-name/index.md` to `2019-01-10-blog-name.md` and try to see if it loads up into the CMS? – Derek Nguyen Apr 29 '19 at 01:55
  • @DerekNguyen: You're right. It works but then I got stuck again because the cover photo wouldn't render. I kept getting an error while running `gatsby build` in my `layouts.js` which said that my cover image could not have children because it was a string. After that, I found this [blog](https://theleakycauldronblog.com/blog/problems-with-gatsby-image-and-their-workarounds/) which helped me a lot. It fixed the error, but I couldn't get my cover image to render. It just wasn't in my DOM. After that, I just gave up. – Arthur Apr 30 '19 at 05:27
  • sorry to hear that, gatsby could definitely be too much sometimes. If you would share your new error here or create a new thread, I'm sure someone could help you out -- or join the [official discord server here](https://discord.gg/ZjUnzy) and the [official spectrum forum here](https://spectrum.chat/gatsby-js) – Derek Nguyen Apr 30 '19 at 06:40

0 Answers0