Add breadcrumbs function, docs and tests
This commit is contained in:
parent
4448798bf5
commit
2bdb432a9f
12 changed files with 451 additions and 0 deletions
|
|
@ -44,6 +44,10 @@ class Context {
|
|||
get => buildNavigation($this);
|
||||
}
|
||||
|
||||
public array $breadcrumbs {
|
||||
get => buildBreadcrumbs($this);
|
||||
}
|
||||
|
||||
public string $homeLabel {
|
||||
get => loadMetadata($this->contentDir)["slug"] ?? "Home";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue