SocialMetadata Pennington.Pipeline
Open Graph / social card metadata for a page.
Properties
Authorstring- Author name for articles.
Descriptionstring- Page description.
ImageUrlstring- URL of the social preview image.
PublishedTimeDateTime?- Publication timestamp for articles.
Typestring- Open Graph type (e.g., "article", "website").
Constructors
SocialMetadata
#public 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
{
/// Author name for articles.
public string Author { get; set; }
/// Page description.
public string Description { get; set; }
/// URL of the social preview image.
public string ImageUrl { get; set; }
/// Publication timestamp for articles.
public DateTime? PublishedTime { get; set; }
/// Open Graph / social card metadata for a page.
public SocialMetadata(string Description, string ImageUrl, string Type, DateTime? PublishedTime, string Author)
;
/// Open Graph type (e.g., "article", "website").
public string Type { get; set; }
}