Skip to content Skip to sidebar Skip to footer

On Gatsby Cms How Can I Set The About Page As A Index Page

Hi I installed the gatsby cms starter with netlify, this project came with a started template called kaldi that have a basic post and pages, is easy to create fields and build the

Solution 1:

Gatsby, by default, will generate a path based on the file name. So if you have a file at pages/index.js it will generate a file named public/index.html which is typically going to be served as the root directory index.

To change this page, you have a few options.

  1. Configure your server to serve public/about.html as the root directory index, though this is uncommon and likely to be hard to debug later.
  2. Replace pages/index.js with the content of your pages/about.js file.
  3. Export the top-level component from pages/about.js from pages/index.js as the default

Post a Comment for "On Gatsby Cms How Can I Set The About Page As A Index Page"