public static Page DeserializeFromFile(string file, DirectoryInfo publishedDirectory, IYamlMarkdown yamlMarkdown) { return(MarkdownDocumentSerialization.DeserializeFromFile( (relativeUri, title, content, published, author) => new Page(relativeUri, title, content, published, author), file, publishedDirectory, yamlMarkdown)); }
public static BlogPost Deserialize(string relativeUri, string markdownWithFrontMatter, IYamlMarkdown yamlMarkdown) { return(MarkdownDocumentSerialization.Deserialize( (rUri, title, content, published, author) => new BlogPost(rUri, title, content, published, author), relativeUri, markdownWithFrontMatter, yamlMarkdown)); }