This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

NavigationInfo Pennington.Navigation

Page-scoped navigation context exposed to layouts and components.

Properties

Breadcrumbs ImmutableList<BreadcrumbItem>
Breadcrumb trail from the site root to the current page.
NextPage NavigationTreeItem
Next page in reading order, or null at the end.
PageTitle string
Title of the current page.
PreviousPage NavigationTreeItem
Previous page in reading order, or null at the start.
SectionName string
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

SectionName string
Label of the containing top-level section, or null if none.
Breadcrumbs ImmutableList<BreadcrumbItem>
Breadcrumb trail from the site root to the current page.
PageTitle string
Title of the current page.
PreviousPage NavigationTreeItem
Previous page in reading order, or null at the start.
NextPage NavigationTreeItem
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; }
}