diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-05-01 10:01:25 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-05-01 17:18:30 +0200 |
commit | 7be7f89bf6a153f629009c93ece21b23df08ccf2 (patch) | |
tree | 0f0597789f70152d887827d0f60174c455e832ee /hugolib/rebuild_test.go | |
parent | c8e400b621ea7d44e522fb9bfa66d992ccb9ca84 (diff) | |
download | hugo-7be7f89bf6a153f629009c93ece21b23df08ccf2.tar.gz hugo-7be7f89bf6a153f629009c93ece21b23df08ccf2.zip |
Fix rebuilds on cascade deletes/renames
And also avoid reading sub directories on simple changes to branch `_index.md` files.
Fixes #12449
Diffstat (limited to 'hugolib/rebuild_test.go')
-rw-r--r-- | hugolib/rebuild_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hugolib/rebuild_test.go b/hugolib/rebuild_test.go index a847af3af..542810b64 100644 --- a/hugolib/rebuild_test.go +++ b/hugolib/rebuild_test.go @@ -1614,9 +1614,11 @@ p1-content| b.AssertFileContent("public/index.html", "home-content|") b.AssertFileContent("public/p1/index.html", "p1-content|") + b.AssertRenderCountPage(3) b.EditFileReplaceAll("content/_index.md", "home-content", "home-content-foo").Build() b.AssertFileContent("public/index.html", "home-content-foo") + b.AssertRenderCountPage(2) // Home page rss + html b.EditFileReplaceAll("content/p1/index.md", "p1-content", "p1-content-foo").Build() b.AssertFileContent("public/p1/index.html", "p1-content-foo") |