Open jsmolka opened 1 month ago
This mount is causing the problem:
[[module.mounts]]
source = "content"
target = "assets"
If you remove the above from your site configuration, the rebuild works as expected.
I understand what you're trying to do (make every page resource available as a global resource), but I wouldn't do that.
Failing test:
func TestRebuildIssue12838(t *testing.T) {
t.Parallel()
files := `
-- hugo.toml --
disableKinds = ['page','section','rss','sitemap','taxonomy','term']
[[module.mounts]]
source = 'content'
target = 'assets'
-- layouts/index.html --
{{ .Content }}
-- content/_index.md --
foo
`
b := hugolib.NewIntegrationTestBuilder(
hugolib.IntegrationTestConfig{
T: t,
TxtarString: files,
NeedsOsFS: true,
Running: true,
}).Build()
b.AssertFileContent("public/index.html", "foo")
b.EditFiles("content/_index.md", "bar").Build()
b.AssertFileContent("public/index.html", "bar")
}
Thank you. I can't really remember what I was trying to achieve there, but I removed the mount and everything works again.
What version of Hugo are you using (
hugo version
)?I am using Windows 10.
Does this issue reproduce with the latest release?
Clone and setup my blog.
Then change the content of any markdown file. Hugo detects the change, but it's not visible in the browser. Even reloading the page doesn't reflect the changes. I doesn't work with Chrome and Firefox. I need to restart hugo to see the changes. I had this issue for a while and stayed on a older hugo version, hoping for the fix. It stopped working when upgrading from v0.122.0 to v0.123.0.
Hope this helps, thanks for the otherwise great library.