JsonLdArticle Pennington.StructuredData
JSON-LD Article schema for content pages.
Properties
AuthorNamestring?- Default:
nullDisplay name of the author, when known. DatePublishedSystem.DateTime?- Default:
nullPublication date, when known. Descriptionstring?- Default:
nullShort description of the article. Headlinestring- Article headline.
Urlstring- Canonical URL of the article.
Constructors
.ctor
#public record JsonLdArticle(
string Headline,
string? Description,
string Url,
DateTime? DatePublished,
string? AuthorName
);JSON-LD Article schema for content pages.
Parameters
Headlinestring- Article headline.
Descriptionstring?- Short description of the article.
Urlstring- Canonical URL of the article.
DatePublishedDateTime?- Publication date, when known.
AuthorNamestring?- Display name of the author, when known.
Pennington.StructuredData.JsonLdArticle
namespace Pennington.StructuredData;
/// JSON-LD Article schema for content pages.
public record JsonLdArticle
{
/// JSON-LD Article schema for content pages.
public record JsonLdArticle(
string Headline,
string? Description,
string Url,
DateTime? DatePublished,
string? AuthorName
);
/// Display name of the author, when known.
string? AuthorName
;
/// Publication date, when known.
DateTime? DatePublished
;
/// Short description of the article.
string? Description
;
/// Article headline.
string Headline
;
/// Canonical URL of the article.
string Url
;
}