aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources/page/pages_related.go
diff options
context:
space:
mode:
Diffstat (limited to 'resources/page/pages_related.go')
-rw-r--r--resources/page/pages_related.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/page/pages_related.go b/resources/page/pages_related.go
index bc3b8b55a..83910e0d4 100644
--- a/resources/page/pages_related.go
+++ b/resources/page/pages_related.go
@@ -38,7 +38,7 @@ type PageGenealogist interface {
// Template example:
// {{ $related := .RegularPages.RelatedIndices . "tags" "date" }}
- RelatedIndices(doc related.Document, indices ...interface{}) (Pages, error)
+ RelatedIndices(doc related.Document, indices ...any) (Pages, error)
// Template example:
// {{ $related := .RegularPages.RelatedTo ( keyVals "tags" "hugo", "rocks") ( keyVals "date" .Date ) }}
@@ -62,7 +62,7 @@ func (p Pages) Related(doc related.Document) (Pages, error) {
// RelatedIndices searches the given indices with the search keywords from the
// supplied document.
-func (p Pages) RelatedIndices(doc related.Document, indices ...interface{}) (Pages, error) {
+func (p Pages) RelatedIndices(doc related.Document, indices ...any) (Pages, error) {
indicesStr, err := cast.ToStringSliceE(indices)
if err != nil {
return nil, err