ZippyStarter logo

Changing the blog path

This guide explains the process of changing the root slug from 'blog' to 'articles'.

You're not stuck with the word blog if it doesn't work for you, you can change it. For the sake of example let's change it to articles.

To do this change all references:

  1. Change app/blog to app/articles
  2. Change content/blog to content/articles
  3. In config.json change blogPath to articles & blogRoot to content/articles

For completeness, you can also change any other references used by contentLayer, such as the names of documentType.