diff --git a/MyApp/Markdown.Blog.cs b/MyApp/Markdown.Blog.cs index ccd551e..9ad3776 100644 --- a/MyApp/Markdown.Blog.cs +++ b/MyApp/Markdown.Blog.cs @@ -120,7 +120,7 @@ public string GetSplashImage(MarkdownFileInfo post) var content = file.ReadAllText(); var writer = new StringWriter(); - var doc = CreateMarkdownFile(content, writer, pipeline); + var doc = CreateMarkdownFile(path, content, writer, pipeline); if (doc.Title == null) { log.LogWarning("No frontmatter found for {VirtualPath}, ignoring...", file.VirtualPath); @@ -155,7 +155,7 @@ public void LoadFrom(string fromDirectory) var files = VirtualFiles.GetDirectory(fromDirectory).GetAllFiles().ToList(); log.LogInformation("Found {Count} posts", files.Count); - var pipeline = CreatePipeline(); + var pipeline = CreatePipeline(string.Empty); foreach (var file in files) { @@ -189,4 +189,4 @@ public void LoadFrom(string fromDirectory) public override List GetAll() => VisiblePosts.Map(doc => ToMetaDoc(doc, x => x.Url ??= $"/posts/{x.Slug}")); -} \ No newline at end of file +}