public static StaticSiteItemFrontMatter GetFromYaml(StaticSiteConfigFrontMatterKeys frontMatterKeys, string yaml) { var frontMatter = new StaticSiteItemFrontMatter(frontMatterKeys); frontMatter.Deserialize(yaml); return(frontMatter); }
public static StaticSiteItemFrontMatter GetFromBlogPost(StaticSiteConfigFrontMatterKeys frontMatterKeys, BlogPost post) { var frontMatter = new StaticSiteItemFrontMatter(frontMatterKeys); frontMatter.LoadFromBlogPost(post); return(frontMatter); }