Previews problem while running hugo server
What happened
There’s some operation caused 404 page while running hugo server
.
Once you changed categories
and tags
during running hugo server
, browser’ll jumped to 404 page after you click the changed categories
and tags
.
Multiple pictures contained
Process description
For example:
- This article’s
categories
andtags
is like this
- categories: [’tech']
- tags: [‘hugo’, ‘issue’, ’experience’]
- After running
hugo server
, you can simply clickcategories
ortags
jump to corresponding page
- But after you changed
categories
ortags
in editor
- Turns out with 404
- When you’re running
hugo server
, this situation includes but is not limited tocategories
ortags
orauthor
etc
- It also works for adding new one after running
hugo server
Solution
Just simply Ctrl
+ C
Then running hugo server
Conclusion
I don’t know why, but it is as it is….
I‘m not even a front-end engineer anyway…. :(
Is this article like a kind of simply tips?