IFrontMatter Pennington.FrontMatter
Minimum: every content page has a title. Default members provide sensible opt-out values so implementations only declare properties they actually parse from front matter.
Properties
DateSystem.DateTime?- Default:
nullPublication or last-modified date surfaced in feeds and sitemaps. Descriptionstring?- Default:
nullShort summary used in meta descriptions, OpenGraph tags, and listings. IsDraftbool- Default:
falseTrue when the page is a draft and should be excluded from builds. Llmsbool- Default:
trueTrue when the page should be included in llms.txt output. Searchbool- Default:
trueTrue when the page should be included in the search index. Titlestring- Page title rendered in the browser tab, navigation, and OpenGraph tags.
Uidstring?- Default:
nullStable cross-reference identifier used by xref links.
Pennington.FrontMatter.IFrontMatter
namespace Pennington.FrontMatter;
/// Minimum: every content page has a title. Default members provide sensible opt-out values so implementations only declare properties they actually parse from front matter.
public interface IFrontMatter
{
/// Publication or last-modified date surfaced in feeds and sitemaps.
DateTime? Date => null;
/// Short summary used in meta descriptions, OpenGraph tags, and listings.
string? Description => null;
/// True when the page is a draft and should be excluded from builds.
bool IsDraft => false;
/// True when the page should be included in llms.txt output.
bool Llms => true;
/// True when the page should be included in the search index.
bool Search => true;
/// Page title rendered in the browser tab, navigation, and OpenGraph tags.
string Title { get; }
/// Stable cross-reference identifier used by xref links.
string? Uid => null;
}