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

StructuredDataContext Pennington.StructuredData

Per-request context passed to GetStructuredData so a front matter implementation can build canonical URLs and apply site-level fallbacks it does not own (e.g. the BlogSite author).

Properties

CanonicalUrl string
required
Absolute canonical URL for the page, including base URL and trailing slash.
FallbackAuthorName string
Site-level author fallback. Honored when the front matter has no author of its own and the template has a default author configured (BlogSite's BlogSiteOptions.AuthorName). May be null.

Pennington.StructuredData.StructuredDataContext

namespace Pennington.StructuredData;

/// Per-request context passed to GetStructuredData so a front matter implementation can build canonical URLs and apply site-level fallbacks it does not own (e.g. the BlogSite author).
public record StructuredDataContext
{
    /// Absolute canonical URL for the page, including base URL and trailing slash.
    
public string CanonicalUrl { get; set; }
/// Site-level author fallback. Honored when the front matter has no author of its own and the template has a default author configured (BlogSite's BlogSiteOptions.AuthorName). May be null.
public string FallbackAuthorName { get; set; }
}