JsonLdArticle
Pennington.StructuredData
schema.org Article — a blog post or content page, emitted in the page head.
Properties
AuthorJsonLdPerson- Author entity. Omitted when null.
DatePublishedDateTime?- Publication date. Omitted when null; serialized as
yyyy-MM-ddTHH:mm:ssZ. Descriptionstring- Short description of the article. Omitted when null.
Headlinestring- requiredArticle headline.
Typestring- schema.org type literal (e.g. "Article", "Recipe").
Urlstring- requiredCanonical 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; }
}