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

ContentTocItem Pennington.Content

A table-of-contents entry for navigation.

Properties

Description string
Front-matter description, surfaced as a boosted field in the search index.
ExcludeFromLlms bool
When true, excluded from llms.txt.
ExcludeFromSearch bool
When true, excluded from the search index.
HierarchyParts string[]
Ancestor path segments used to place the entry in the tree.
Locale string
Locale the entry belongs to, or null when the entry is locale-neutral.
Order int
Sort order within the entry's section.
Route ContentRoute
Content route the entry links to.
SearchOnly bool
When true, the entry is indexed for search/llms but filtered out of the rendered navigation tree by BuildTreeAsync. Search-index and llms.txt consumers keep the entry as long as ExcludeFromSearch / ExcludeFromLlms allow it.
SectionLabel string
Section label used for grouping, or null for the default bucket.
Tags string[]
Front-matter tags, surfaced as a search facet. Empty when the front matter is not ITaggable.
Title string
Display title shown in navigation.

Constructors

ContentTocItem

#
public ContentTocItem(string Title, ContentRoute Route, int Order, string[] HierarchyParts, string SectionLabel, string Locale)

A table-of-contents entry for navigation.

Parameters

Title string
Display title shown in navigation.
Route ContentRoute
Content route the entry links to.
Order int
Sort order within the entry's section.
HierarchyParts string[]
Ancestor path segments used to place the entry in the tree.
SectionLabel string
Section label used for grouping, or null for the default bucket.
Locale string
Locale the entry belongs to, or null when the entry is locale-neutral.

Pennington.Content.ContentTocItem

namespace Pennington.Content;

/// A table-of-contents entry for navigation.
public record ContentTocItem
{
    /// A table-of-contents entry for navigation.
    
public ContentTocItem(string Title, ContentRoute Route, int Order, string[] HierarchyParts, string SectionLabel, string Locale)
; /// Front-matter description, surfaced as a boosted field in the search index.
public string Description { get; set; }
/// When true, excluded from llms.txt.
public bool ExcludeFromLlms { get; set; }
/// When true, excluded from the search index.
public bool ExcludeFromSearch { get; set; }
/// Ancestor path segments used to place the entry in the tree.
public string[] HierarchyParts { get; set; }
/// Locale the entry belongs to, or null when the entry is locale-neutral.
public string Locale { get; set; }
/// Sort order within the entry's section.
public int Order { get; set; }
/// Content route the entry links to.
public ContentRoute Route { get; set; }
/// When true, the entry is indexed for search/llms but filtered out of the rendered navigation tree by BuildTreeAsync. Search-index and llms.txt consumers keep the entry as long as ExcludeFromSearch / ExcludeFromLlms allow it.
public bool SearchOnly { get; set; }
/// Section label used for grouping, or null for the default bucket.
public string SectionLabel { get; set; }
/// Front-matter tags, surfaced as a search facet. Empty when the front matter is not ITaggable.
public string[] Tags { get; set; }
/// Display title shown in navigation.
public string Title { get; set; }
}