Skip to content

A lot of 404 on posts after migration from the old theme #1089

Answered by ElastiCourse
wojciehm asked this question in Q&A
Discussion options

You must be logged in to vote

The URL structure is defined in hugo.yaml (or .toml). Have you removed the contents of the config when changing theme?
It should be a simple fix by adding these line to hugo.yaml:

permalinks:
    posts: /:slug/
    page: /:slug/

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wojciehm
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants