From ebf677a58360126d8b9a1e98d086aa4279f53181 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 4 May 2017 19:14:43 +0200 Subject: [PATCH] hubolib: Embed Page in WeightedPage People can still say `.Page`, but by embedding it `WeightedPages` can be used interchangeably with `Pages` in templates. Fixes #3435 --- hugolib/taxonomy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugolib/taxonomy.go b/hugolib/taxonomy.go index 5faf14d0..35e0795e 100644 --- a/hugolib/taxonomy.go +++ b/hugolib/taxonomy.go @@ -39,7 +39,7 @@ type WeightedPages []WeightedPage // A WeightedPage is a Page with a weight. type WeightedPage struct { Weight int - Page *Page + *Page } func (w WeightedPage) String() string { -- 2.30.2