ref: a6f199f7a640161333608b4a843d701f7e182829
parent: 0dd06bdac008aa81ec2e8f29ad8110dac0227011
author: Bjørn Erik Pedersen <[email protected]>
date: Tue Aug 14 14:19:45 EDT 2018
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
--- a/hugolib/pages_related.go
+++ b/hugolib/pages_related.go
@@ -73,7 +73,7 @@
return nil, err
}
- result, err := p.searchDoc(page, indicesStr...)
+ result, err := p.searchDoc(doc, indicesStr...)
if err != nil {
return nil, err
}