summaryrefslogtreecommitdiffstats
path: root/hugolib/content_map.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/content_map.go')
-rw-r--r--hugolib/content_map.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/content_map.go b/hugolib/content_map.go
index 23b74e1c7..0b82bdf28 100644
--- a/hugolib/content_map.go
+++ b/hugolib/content_map.go
@@ -193,6 +193,10 @@ func (m *pageMap) AddFi(fi hugofs.FileMetaInfo) error {
if err != nil {
return err
}
+ if pageResource == nil {
+ // Disabled page.
+ return nil
+ }
key = pi.Base()
rs = &resourceSource{r: pageResource}