I think I found a bug, but I am still trying to figure it out.
When I run
hugo server and edit pages, on reloads sometimes the server would not recognize index.md files anymore and instead show a list of pages for the corresponding directory. Is this known?
The problem is that it also happens in the initial state of the server, e.g. on some fresh starts it does everything correctly, on some it does only parts correctly. So I have to run
hugo many times and check and hope that everything is correct for deployment.