From a6f199f7a640161333608b4a843d701f7e182829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 14 Aug 2018 18:19:45 +0200 Subject: [PATCH] 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 --- hugolib/pages_related.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }