Permalink
Browse files

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
  • Loading branch information...
bep committed May 4, 2017
1 parent 58d9cbd commit ebf677a58360126d8b9a1e98d086aa4279f53181
Showing with 1 addition and 1 deletion.
  1. +1 −1 hugolib/taxonomy.go
View
@@ -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 {

0 comments on commit ebf677a

Please sign in to comment.