mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 16:17:21 +00:00
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
This commit is contained in:
1 file changed
+1
-1
@@ -73,7 +73,7 @@ func (p Pages) RelatedIndices(doc related.Document, indices ...interface{}) (Pag
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err := p.searchDoc(page, indicesStr...)
|
result, err := p.searchDoc(doc, indicesStr...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user