SocialMetadata Pennington.Pipeline
Open Graph / social card metadata for a page.
Properties
Authorstring?- Default:
nullAuthor name for articles. Descriptionstring?- Default:
nullPage description. ImageUrlstring?- Default:
nullURL of the social preview image. PublishedTimeSystem.DateTime?- Default:
nullPublication timestamp for articles. Typestring?- Default:
nullOpen Graph type (e.g., "article", "website").
Constructors
.ctor
#public record SocialMetadata(
string? Description,
string? ImageUrl,
string? Type,
DateTime? PublishedTime,
string? Author
);Open Graph / social card metadata for a page.
Parameters
Descriptionstring?- Page description.
ImageUrlstring?- URL of the social preview image.
Typestring?- Open Graph type (e.g., "article", "website").
PublishedTimeDateTime?- Publication timestamp for articles.
Authorstring?- Author name for articles.
Pennington.Pipeline.SocialMetadata
namespace Pennington.Pipeline;
/// Open Graph / social card metadata for a page.
public record SocialMetadata
{
/// Open Graph / social card metadata for a page.
public record SocialMetadata(
string? Description,
string? ImageUrl,
string? Type,
DateTime? PublishedTime,
string? Author
);
/// Author name for articles.
string? Author
;
/// Page description.
string? Description
;
/// URL of the social preview image.
string? ImageUrl
;
/// Publication timestamp for articles.
DateTime? PublishedTime
;
/// Open Graph type (e.g., "article", "website").
string? Type
;
}