mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-19 12:41:30 +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.
|
||||
type WeightedPage struct {
|
||||
Weight int
|
||||
Page *Page
|
||||
*Page
|
||||
}
|
||||
|
||||
func (w WeightedPage) String() string {
|
||||
|
|
Loading…
Reference in a new issue