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

JsonLdArticle Pennington.StructuredData

schema.org Article — a blog post or content page, emitted in the page head.

Properties

Author JsonLdPerson
Author entity. Omitted when null.
DatePublished DateTime?
Publication date. Omitted when null; serialized as yyyy-MM-ddTHH:mm:ssZ.
Description string
Short description of the article. Omitted when null.
Headline string
required
Article headline.
Type string
schema.org type literal (e.g. "Article", "Recipe").
Url string
required
Canonical URL of the article.

Pennington.StructuredData.JsonLdArticle

namespace Pennington.StructuredData;

/// schema.org Article — a blog post or content page, emitted in the page head.
public record JsonLdArticle
{
    /// Author entity. Omitted when null.
    
public JsonLdPerson Author { get; set; }
/// Publication date. Omitted when null; serialized as yyyy-MM-ddTHH:mm:ssZ.
public DateTime? DatePublished { get; set; }
/// Short description of the article. Omitted when null.
public string Description { get; set; }
/// Article headline.
public string Headline { get; set; }
/// schema.org type literal (e.g. "Article", "Recipe").
public string Type { get; }
/// Canonical URL of the article.
public string Url { get; set; }
}