public static void UpdateImage(this MetaTagsPart part, string[] paths) { var field = part.GetOrCreate <MediaField>(Constants.ImageFieldName); if (field != null) { field.Paths = paths; part.Apply(Constants.ImageFieldName, field); } }
public static void UpdateTitle(this MetaTagsPart part, string title) { var field = part.GetOrCreate <TextField>(Constants.TitleFieldName); if (field != null) { field.Text = title; part.Apply(Constants.TitleFieldName, field); } }
public static void UpdateDescription(this MetaTagsPart part, string description) { var field = part.GetOrCreate <TextField>(Constants.DescriptionFieldName); if (field != null) { field.Text = description; part.Apply(Constants.DescriptionFieldName, field); } }