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
CanonicalUrlstring- requiredAbsolute canonical URL for the page, including base URL and trailing slash.
FallbackAuthorNamestring- 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; }
}