DocSiteFrontMatter Pennington.DocSite
Front matter bound by AddDocSite. Extends the DocFrontMatter shape with RedirectUrl via IRedirectable. Implements IFrontMatter, ITaggable, ISectionable, IOrderable, and IRedirectable.
Properties
Descriptionstring?- Default:
nullShort description used for the meta description and social cards. IsDraftbool- Default:
falseWhen true, the page is skipped during production builds. Llmsbool- Default:
trueWhen false, the page is excluded from the generated llms.txt output. Orderint- Default:
int.MaxValueSort order within the containing section. Lower values appear first. RedirectUrlstring?- Default:
nullWhen set, the page emits a client-side redirect to this URL instead of normal content. Searchbool- Default:
trueWhen false, the page is excluded from the search index. SectionLabelstring?- Default:
nullSection heading this page belongs under in navigation. Tagsstring[]- Default:
[]Tags applied to this page for filtering and the tag index. Titlestring- Default:
""Page title rendered in the browser tab and page heading. Uidstring?- Default:
nullStable identifier used for cross-references ([text](xref:uid)).
Pennington.DocSite.DocSiteFrontMatter
namespace Pennington.DocSite;
/// Front matter bound by AddDocSite. Extends the DocFrontMatter shape with RedirectUrl via IRedirectable. Implements IFrontMatter, ITaggable, ISectionable, IOrderable, and IRedirectable.
public record DocSiteFrontMatter
{
/// Short description used for the meta description and social cards.
public string? Description { get; init; }
/// When true, the page is skipped during production builds.
public bool IsDraft { get; init; }
/// When false, the page is excluded from the generated llms.txt output.
public bool Llms { get; init; } = true;
/// Sort order within the containing section. Lower values appear first.
public int Order { get; init; } = int.MaxValue;
/// When set, the page emits a client-side redirect to this URL instead of normal content.
public string? RedirectUrl { get; init; }
/// When false, the page is excluded from the search index.
public bool Search { get; init; } = true;
/// Section heading this page belongs under in navigation.
public string? SectionLabel { get; init; }
/// Tags applied to this page for filtering and the tag index.
public string[] Tags { get; init; } = [];
/// Page title rendered in the browser tab and page heading.
public string Title { get; init; } = "";
/// Stable identifier used for cross-references ([text](xref:uid)).
public string? Uid { get; init; }
}