// 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
}
lang string
+ // When in Fast Render Mode, we only render a sub set of the pages, i.e. the
+ // pages the user is working on. There are, however, situations where we need to
+ // signal other pages to be rendered.
+ forceRender bool
+
// The output formats this page will be rendered to.
outputFormats output.Formats