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

ResolvedContent Pennington.DocSite.Services

Rendered content plus the surrounding locale/fallback metadata needed to render a page.

Properties

Description string
Page description from front matter.
FallbackDefaultDisplayName string
Display name for the locale actually served, shown in the fallback notice.
FallbackRequestedDisplayName string
Display name for the requested locale, shown in the fallback notice.
Html string
Rendered HTML body.
IsFallback bool
True when content from the default locale was served because the requested locale had no match.
Locale string
Locale used to render the page (may differ from the requested locale when falling back).
Metadata IFrontMatter
Parsed front matter for the page.
Outline OutlineEntry[]
Headings extracted from the body for the on-page outline.
RequestedLocale string
Locale the user originally requested, when different from Locale.
Route ContentRoute
Canonical route for the resolved page.
Title string
Page title from front matter.

Constructors

ResolvedContent

#
public ResolvedContent(ContentRoute Route, string Title, string Description, string Html, OutlineEntry[] Outline, IFrontMatter Metadata, string Locale = "", bool IsFallback = false, string RequestedLocale = null, string FallbackRequestedDisplayName = null, string FallbackDefaultDisplayName = null)

Rendered content plus the surrounding locale/fallback metadata needed to render a page.

Parameters

Route ContentRoute
Canonical route for the resolved page.
Title string
Page title from front matter.
Description string
Page description from front matter.
Html string
Rendered HTML body.
Outline OutlineEntry[]
Headings extracted from the body for the on-page outline.
Metadata IFrontMatter
Parsed front matter for the page.
Locale string
Locale used to render the page (may differ from the requested locale when falling back).
IsFallback bool
True when content from the default locale was served because the requested locale had no match.
RequestedLocale string
Locale the user originally requested, when different from Locale.
FallbackRequestedDisplayName string
Display name for the requested locale, shown in the fallback notice.
FallbackDefaultDisplayName string
Display name for the locale actually served, shown in the fallback notice.

Pennington.DocSite.Services.ResolvedContent

namespace Pennington.DocSite.Services;

/// Rendered content plus the surrounding locale/fallback metadata needed to render a page.
public record ResolvedContent
{
    /// Page description from front matter.
    
public string Description { get; set; }
/// Display name for the locale actually served, shown in the fallback notice.
public string FallbackDefaultDisplayName { get; set; }
/// Display name for the requested locale, shown in the fallback notice.
public string FallbackRequestedDisplayName { get; set; }
/// Rendered HTML body.
public string Html { get; set; }
/// True when content from the default locale was served because the requested locale had no match.
public bool IsFallback { get; set; }
/// Locale used to render the page (may differ from the requested locale when falling back).
public string Locale { get; set; }
/// Parsed front matter for the page.
public IFrontMatter Metadata { get; set; }
/// Headings extracted from the body for the on-page outline.
public OutlineEntry[] Outline { get; set; }
/// Locale the user originally requested, when different from Locale.
public string RequestedLocale { get; set; }
/// Rendered content plus the surrounding locale/fallback metadata needed to render a page.
public ResolvedContent(ContentRoute Route, string Title, string Description, string Html, OutlineEntry[] Outline, IFrontMatter Metadata, string Locale = "", bool IsFallback = false, string RequestedLocale = null, string FallbackRequestedDisplayName = null, string FallbackDefaultDisplayName = null)
; /// Canonical route for the resolved page.
public ContentRoute Route { get; set; }
/// Page title from front matter.
public string Title { get; set; }
}