Skip to content

Commit ebf677a

Browse files
committed
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
1 parent 58d9cbd commit ebf677a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎hugolib/taxonomy.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type WeightedPages []WeightedPage
3939
// A WeightedPage is a Page with a weight.
4040
type WeightedPage struct {
4141
Weight int
42-
Page *Page
42+
*Page
4343
}
4444

4545
func (w WeightedPage) String() string {

0 commit comments

Comments
 (0)