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
This commit is contained in:
Bjørn Erik Pedersen 2017-05-04 19:14:43 +02:00
parent 58d9cbd31b
commit ebf677a583

View file

@ -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 {