From: Bjørn Erik Pedersen Date: Thu, 4 May 2017 17:14:43 +0000 (+0200) Subject: hubolib: Embed Page in WeightedPage X-Git-Tag: v0.21~39 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ebf677a58360126d8b9a1e98d086aa4279f53181;p=brevno-suite%2Fhugo 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 --- 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 {