mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 16:27:32 -04:00
hugolib: Check for nil in shouldRender
This commit is contained in:
parent
51f08b0b6a
commit
9d7f166244
@ -727,6 +727,10 @@ type BuildCfg struct {
|
||||
// For regular builds, this will allways return true.
|
||||
// TODO(bep) rename/work this.
|
||||
func (cfg *BuildCfg) shouldRender(p *pageState) bool {
|
||||
if p == nil {
|
||||
return false
|
||||
}
|
||||
|
||||
if p.forceRender {
|
||||
return true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user