commit a6f199f7a640161333608b4a843d701f7e182829
parent 0dd06bdac008aa81ec2e8f29ad8110dac0227011
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Tue, 14 Aug 2018 18:19:45 +0200
hugolib: Use the interface value when doing Related search
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
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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
}