Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 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));
 }