diff --git a/hugolib/site_sections.go b/hugolib/site_sections.go index 1ab2b0e27..25731e9d5 100644 --- a/hugolib/site_sections.go +++ b/hugolib/site_sections.go @@ -115,7 +115,8 @@ func (p *Page) IsAncestor(other interface{}) (bool, error) { func (p *Page) Eq(other interface{}) (bool, error) { pp, err := unwrapPage(other) if err != nil { - return false, err + // Do not return an error on type mismatch. + return false, nil } return p == pp, nil