NavigationInfo
Pennington.Navigation
Page-scoped navigation context exposed to layouts and components.
Properties
BreadcrumbsImmutableList<BreadcrumbItem>- Breadcrumb trail from the site root to the current page.
NextPageNavigationTreeItem- Next page in reading order, or null at the end.
PageTitlestring- Title of the current page.
PreviousPageNavigationTreeItem- Previous page in reading order, or null at the start.
SectionNamestring- Label of the containing top-level section, or null if none.
Constructors
NavigationInfo
#public NavigationInfo(string SectionName, ImmutableList<BreadcrumbItem> Breadcrumbs, string PageTitle, NavigationTreeItem PreviousPage, NavigationTreeItem NextPage)
Page-scoped navigation context exposed to layouts and components.
Parameters
SectionNamestring- Label of the containing top-level section, or null if none.
BreadcrumbsImmutableList<BreadcrumbItem>- Breadcrumb trail from the site root to the current page.
PageTitlestring- Title of the current page.
PreviousPageNavigationTreeItem- Previous page in reading order, or null at the start.
NextPageNavigationTreeItem- Next page in reading order, or null at the end.
Pennington.Navigation.NavigationInfo
namespace Pennington.Navigation;
/// Page-scoped navigation context exposed to layouts and components.
public record NavigationInfo
{
/// Breadcrumb trail from the site root to the current page.
public ImmutableList<BreadcrumbItem> Breadcrumbs { get; set; }
/// Page-scoped navigation context exposed to layouts and components.
public NavigationInfo(string SectionName, ImmutableList<BreadcrumbItem> Breadcrumbs, string PageTitle, NavigationTreeItem PreviousPage, NavigationTreeItem NextPage)
;
/// Next page in reading order, or null at the end.
public NavigationTreeItem NextPage { get; set; }
/// Title of the current page.
public string PageTitle { get; set; }
/// Previous page in reading order, or null at the start.
public NavigationTreeItem PreviousPage { get; set; }
/// Label of the containing top-level section, or null if none.
public string SectionName { get; set; }
}