mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
resources/page: Re-introduce .Page.Page
It was removed in 597e418cb0
-- it's not documented, but it's used in too many real sites on the web.
See #5784
This commit is contained in:
@@ -104,6 +104,10 @@ func (pt pageTree) InSection(other interface{}) (bool, error) {
|
||||
|
||||
}
|
||||
|
||||
func (pt pageTree) Page() page.Page {
|
||||
return pt.p
|
||||
}
|
||||
|
||||
func (pt pageTree) Parent() page.Page {
|
||||
return pt.p.parent
|
||||
}
|
||||
|
Reference in New Issue
Block a user