Skip to content

Commit

Permalink
hugolib: Use the interface value when doing Related search
Browse files Browse the repository at this point in the history
Currently it makes no practical difference, but this is more a protection if we in the future creates index from the content related fields. That will not work from a shortcode.

See #5071
  • Loading branch information
bep committed Aug 14, 2018
1 parent 0dd06bd commit a6f199f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugolib/pages_related.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a6f199f

Please sign in to comment.