Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Watch detect changes but do not rebuild home page in some cases #2869
I've upgraded from 0.17 to 0.18.1.
Running Hugo 0.18.1 on Windows 10
I'm using Notepad2 which is still working fine with hugo_0.17.exe. Same with other editors (ex: Sublime Text 3).
By digging further, I've notice the issue occurs only on the home page!
Maybe this is linked to my config.toml / custom theme : https://github.com/TiTi/hurock
Ok so here is how to reproduce:
Ok now launch in watch mode:
Open your browser to http://localhost:1313/ and stay on the home page
Then make a change to hello.md :
The browser refresh the page automatically (you have to be a good catch, so fast in localhost with no content).
There is no error in verbose mode, only warnings and they don't look related to the theme.
changed the title from
windows: Watch detect changes but do not rebuild (0.18.1)
Watch detect changes but do not rebuild home page in some cases
Jan 3, 2017
I think i have a problem that may clearly be related, but not with the "server" mode of hugo, even with the html pages generation.
I create a new .md page with "draft = true".
I've reverted from 0.18.1 to 0.17, and i don't have the problem with 0.17.
(it seems at first glance from my side possibly related to this issue, but may need another distinct issue, i don't know)
An added note: The reason it failed for you (and not for me and many others) is that you used the .Site.Pages collection on the home page -- this is perfectly fine, and should of course work on reloads (it does now), but:
Your templates will be more portable is you use
This is the contextual page collection. For the home page, this will be the same as