resource/page: Add Page.Ancestors

Fixes #10567
This commit is contained in:
Septs
2022-11-30 12:02:57 +08:00
committed by Bjørn Erik Pedersen
parent 7874b96815
commit 3a216186b2
7 changed files with 38 additions and 12 deletions

View File

@@ -32,6 +32,9 @@ See [`.Scratch`](/functions/scratch/) for page-scoped, writable variables.
.Aliases
: aliases of this page
.Ancestors
: get the ancestors of each page, simplify [breadcrumb navigation]({{< relref "content-management/sections#example-breadcrumb-navigation" >}}) implementation complexity
.BundleType
: the [bundle] type: `leaf`, `branch`, or an empty string if the page is not a bundle.