Hi,
I’m just getting used to using Hugo, playing around on local machine, but one problem I can’t figure out. I’m using the Whiteplain theme and sometimes when running the server all the content pages disappear. The home page remains as do two of the list pages (tags, and categories) but there are no pages listed there. An About page and a links page give 404’s.
Two specific causes have been:
- After stopping and restarting the server
- I added a menu item to the config.toml file
I’m running the server in draft mode. I’ve tried disabling fast render and also used --verbose to try to get some clues but nothing.
I can get all the pages back if I make minor edits and resave the files while the server is running.
Looking through the forums I saw some mention of file encoding problems. I’m generating most of the markdown files through hugo new, via git-bash on Win 10. This results in US ascii files. The markdown files that came with the theme are UTF-8. Don’t know whether that’s relevant or not.
I’ve generated several different sites with different themes and had similar problems on some of those too. I’m mostly not building the sites to the public directory. Though I tried this on one and it didn’t help.
I’m using VS Code for editing. I’ve not touched the existing templates and only made very minor changes to the CSS.
Any help much appreciated.
Thanks