Home
Support Forums

Blog doesn't show up on the site

Hi,

I’ve installed Netlify CMS for my blog, but it doesn’t show up on the site at /blog.

The site is https://www.chriswillburncoaching.com/

I want the blog to show up at https://www.chriswillburncoaching.com/blog

I’m getting a 404 error.

The repo is here:

Any thoughts on how to make Netlify CMS work?

The default is /admin. So your CMS is visible at: Content Manager

You could change it by changing the path in config: https://www.gatsbyjs.com/plugins/gatsby-plugin-netlify-cms/#publicpath

Thanks for the reply. I can get to the admin area and add posts. However, I can’t get to the blog on the live site. It throws a 404 error.

I want to have the blog visible at https://www.chriswillburncoaching.com/blog.

I’m not sure what your problem is exactly. Do you want the CMS to be available at the /blog URL? The reason you can’t get a blog visible at the page is you don’t have a page at that address. If I recall correctly, Gatsby can build individual pages from the src/pages folder. You don’t have a blog.js here:

This is more related to how you’re building your website on Gatsby.

I moved the blog folder, which contains the posts, to src/pages. This is how I had it earlier. I still get a 404 error when I try to load /blog.

I don’t think that’s how it’s done. I’d recommend posting this question on a programming forum where people can guide you on how to create a page in Gatsby.

But to summarise, you can get started by copying your index.js and naming it blog.js. Then you should get the same copy of your home page at /blog. You could then customise it.

You should also check this out: https://www.gatsbyjs.com/docs/creating-and-modifying-pages/

Plus, there might always be more ways fr you to discover.

1 Like

Thanks for your input. Not what I’m looking for, but I appreciate your effort.

Just need the blog to show up at:

https://www.chriswillburncoaching.com/blog

Netlify CMS was supposed to make this pretty simple. Still throws a 404 error.

Any ideas?

I appreciate everyone here on the forum!

To sum up: Netlify CMS is not meant to do what you’re trying.

Longer version: You’re choosing to ignore all that I said before. Netlify CMS is meant to enable adding/editing posts which you can do by visiting /admin and it seems like you already know this. You even have this configured, but you’re fixated on being able to add a page at /blog by just adding Netlify CMS. This is not what Netlify CMS is meant to do or can do. You could create a new page from within the CMS to be available at /blog, but that’s not what you’re trying to do. What you’re looking for is to add a page at the /blog path and to do this, you need to configure your SSG (Gatsby). You need to create a page in it and add a logic to generate some content to show there.

1 Like