mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-05 07:58:36 +00: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:
parent
58d9cbd31b
commit
ebf677a583
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue