diff --git a/hugolib/pages_related.go b/hugolib/pages_related.go index 03abf0a5810..665019bb4a5 100644 --- a/hugolib/pages_related.go +++ b/hugolib/pages_related.go @@ -73,7 +73,7 @@ func (p Pages) RelatedIndices(doc related.Document, indices ...interface{}) (Pag return nil, err } - result, err := p.searchDoc(page, indicesStr...) + result, err := p.searchDoc(doc, indicesStr...) if err != nil { return nil, err }