Hugo 0.56 - Content rendering randomly working

I just installed Hugo which seems very awesome!

Hugo Static Site Generator v0.56.0/extended linux/amd64 BuildDate: 2019-07-25T21:42:01Z

But when I update a file, the content inside content/index.html is not always rendering. I have to kill hugo and restart it to see it.

It fails with no error in Hugo:

Change detected, rebuilding site.
2019-07-28 08:33:57.333 +0200
DEBUG 2019/07/28 08:33:57 Rebuild for events ["\"/home/alex/projects/kantoch/website/hugo/themes/kantoch/assets/sass/styles.scss\": WRITE"]
DEBUG 2019/07/28 08:33:57 Render XML for "sitemap" to "/sitemap.xml"
Total in 134 ms
INFO 2019/07/28 08:34:41 Received System Events: ["/home/alex/projects/kantoch/website/hugo/themes/kantoch/assets/sass/styles.scss": WRITE "/home/alex/projects/kantoch/website/hugo/themes/kantoch/assets/sass/styles.scss": WRITE]

I am on Lubuntu 18.04 freshly installed. Thank you! :slight_smile:


it’s difficult to say what is wrong. We will need to a bit more information to be able to help you; please see Requesting Help.

Do you have the code for your site somewhere we can have a look at?

Thank you for the very quick reply :slight_smile:

I figured it out, my bad.

My filename was content/index.html instead of content/_index.html ; so I was using template layouts/_default/single.html instead of layouts/index.html.

I think Hugo did not know which file took as a template and randomly one or another!