mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
hugolib: Force render of any changed page, even in Fast Render Mode
Fixes #5083
This commit is contained in:
@@ -366,6 +366,11 @@ type BuildCfg struct {
|
||||
// Note that a page does not have to have a content page / file.
|
||||
// For regular builds, this will allways return true.
|
||||
func (cfg *BuildCfg) shouldRender(p *Page) bool {
|
||||
if p.forceRender {
|
||||
p.forceRender = false
|
||||
return true
|
||||
}
|
||||
|
||||
if len(cfg.RecentlyVisited) == 0 {
|
||||
return true
|
||||
}
|
||||
|
Reference in New Issue
Block a user