I am using the kraiklyn theme which uses hierarchical content files to generate a single web page for docs. Hugo version 0.64 works correctly and updates the web page when a content file changes. Hugo 0.65.3 and 0.66 update correctly if the config file changes, but not if a content file changes. The changes are detected and the site is rebuild according to the shell output. The web page refreshes but does not change. There does not seem to be any difference in the output between the versions processing the same changes that I can see. I am unsure if this is a bug or if I have missed something.
$ hugo server
Building sites …
| EN
-------------------+-----
Pages | 7
Paginator pages | 0
Non-page files | 0
Static files | 12
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0
Built in 22 ms
Watching for changes in D:\Hugo\github.io\audiotools\{archetypes,content,data,layouts,static,themes}
Watching for config changes in D:\Hugo\github.io\audiotools\config.yaml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/audiotools/ (bind address 127.0.0.1)
Press Ctrl+C to stop
Change of config file detected, rebuilding site. (Web page refreshes and changes)
2020-03-07 09:37:57.997 +0000
Rebuilt in 22 ms
Change of config file detected, rebuilding site. (Web page refreshes and changes)
2020-03-07 09:38:07.000 +0000
Rebuilt in 20 ms
Change detected, rebuilding site. (Web page refreshes and doesn't change)
2020-03-07 09:39:42.991 +0000
Source changed "D:\\Hugo\\github.io\\audiotools\\content\\introduction\\_index.md": WRITE
Total in 2 ms
Change detected, rebuilding site. (Web page refreshes and doesn't change)
2020-03-07 09:39:49.992 +0000
Source changed "D:\\Hugo\\github.io\\audiotools\\content\\introduction\\_index.md": WRITE
Total in 6 ms
That’s odd! Do you have the same problem when you disable Fast Render mode with --disableFastRender?
From the log it looks like Hugo doesn’t rebuild the website during those last two events. Because it says ‘Total in’ rather than ‘Rebuilt in’. If I recall correctly, ‘Total in’ also appears with file syncing operations rather than an actual rebuild.
Don’t know the answer, sorry. Perhaps other people can jump in.
I tried that --disableFastRender doesn’t make any difference. I hadn’t noticed the ‘Total in’ rather than ‘Rebuilt in’ difference. I just checked – Hugo 0.64 outputs the same ‘Total in’ when it works correctly.
Edit: This theme (kraiklyn) uses recursion to render both the sidebar navigation menu and the content. Although the changes I made for testing didn’t involve recursion. Another site which is a more conventional blog with pages and posts updates correctly when tested with Hugo 0.66 server.
Edit 2: I get the same behaviour with the linux version…
bill@Cecelia:~/hugo/audiotools$ hugo server
| EN
-------------------+-----
Pages | 7
Paginator pages | 0
Non-page files | 0
Static files | 12
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0
Built in 35 ms
Watching for changes in /home/bill/hugo/audiotools/{archetypes,content,data,layouts,static,themes}
Watching for config changes in /home/bill/hugo/audiotools/config.yaml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/audiotools/ (bind address 127.0.0.1)
Press Ctrl+C to stop
Change detected, rebuilding site. (Refresh, no change)
2020-03-08 11:31:29.620 +0000
Source changed "/home/bill/hugo/audiotools/content/introduction/_index.md": WRITE
Total in 10 ms
Edit 3: I want to change the title of this topic to add (Windows/Linux) but can’t. I’ve done it before but can’t remember how or it’s so well hidden I can’t find it.
This appears to be fixed in the latest release – v0.68.3-157669A0 windows/amd64 BuildDate: 2020-03-24T12:04:36Z. And if I could change the title I would.