mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 20:14:58 +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:
1 parent
58d9cbd31b
commit
ebf677a583
1 file changed
+1
-1
+1
-1
@@ -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