After last Hugo update (0.99.1) strange issues here:
Open a index.md file, but after first or two save command, Hugo doesn’t update content in browser
Page desappear from listing also
Hugo doesn’t generate page in public folder
Sometimes page link give “404 page not found” error
Althought, no error reported by Hugo (correctly log “Source changed…” at every save).
Sorry but replaced “http” with “:::” because forum rules.
I’m using “page bundle” mode, and those parameters to developing: (this is my local ip)
hugo server --bind :::://192.168.12.79 --baseURL :::://192.168.12.79
and for generating:
set DESTINATION=%userprofile%\documents\hugo-public
hugo -b="::://thisismysite.com" -d “%DESTINATION%”
Today discovered that files are not updated in /hugo-public folder, nor folder (deleted by me for test) are not regenerated.
Trying also to downgrade to old Hugo version (until 0.96), but no way, strange behaviours persists. No error in hugo logs.
What may have happened?
Thanks
Edit: after writing this post, one of “missing page” now is at right place.
The only thing I changed is this, in front matter:
Changed
category:
- Orari Corsi 2021-2022
to
category:
- "Orari Corsi 2021-2022"
Same page now generated in public folder.
Maybe there is some flaw with front-matter parser (I’m using YAML format)
frjo
May 24, 2022, 2:00pm
2
A link to your repository would make it easier to find the problem.
Thank you frjo.
Notice: all materials here are copyright protected, and is not mine.
Forking is allowed and incouraged for the technical reasons of this discussion.
(sorry but I had to write this legal advice)
frjo
May 24, 2022, 4:17pm
4
There is only a README in the repo, you forgot the site.
Ok, all right now with git. Repo is online if you wanna see problem.
Thank you for patience.
frjo
May 24, 2022, 7:32pm
7
The repo is missing a number of SVG images but other than that it works as expected.
Added missed svg images.
Please try to edit some page in /content, and save more than two times. After some time, Hugo stop refreshing pages and also can show “404 not found”.
I usually keep more than two pages open in the browser. Can it make any difference? Or get in the way of Hugo’s behavior in some way?
frjo
May 24, 2022, 8:43pm
9
It works as expected for me, no issues.
Thank you for your time. There is a way to activate some deeper debug level in Hugo output? To try to investigate this mystery more deeply.
The site is in a folder on Dropbox, maybe it has something to do with it.
So I copied the site to another disk, but it doesn’t work the same.
“Source changed” with correct .md file path, but nothing happens in the browser, even when refreshing.
It’s frustrating.
So saving first time → OK
saving second, third, fourth time → maybe
When Hugo stop refreshing browser window (I’m using Edge) then:
close and reopen Hugo.
Now appear black page with “404 page not found” error.
404 page not found
Hugo say that:
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://192.168.12.79:1313/ (bind address 192.168.12.79)
Press Ctrl+C to stop