mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
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:
@@ -39,7 +39,7 @@ type WeightedPages []WeightedPage
|
|||||||
// A WeightedPage is a Page with a weight.
|
// A WeightedPage is a Page with a weight.
|
||||||
type WeightedPage struct {
|
type WeightedPage struct {
|
||||||
Weight int
|
Weight int
|
||||||
Page *Page
|
*Page
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w WeightedPage) String() string {
|
func (w WeightedPage) String() string {
|
||||||
|
Reference in New Issue
Block a user