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:
- Change
app/blog
toapp/articles
- Change
content/blog
tocontent/articles
- In
config.json
changeblogPath
toarticles
&blogRoot
tocontent/articles
For completeness, you can also change any other references used by contentLayer, such as the names of documentType
.