Skip to content

Commit

Permalink
Add missing published field to Markdown importer
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel15 committed Apr 1, 2024
1 parent 1d6cc96 commit 7a74182
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Daniel15.Web/Services/BlogMarkdownImporter.cs
Expand Up @@ -57,6 +57,7 @@ private async Task ProcessFile(string path)
post.Slug = slug;
post.Summary = metadata.Summary;
post.Title = metadata.Title;
post.Published = metadata.Published;

var categories = blogRepository.GetCategoriesByTitle(metadata.Categories);
post.MainCategory = categories[0];
Expand Down

0 comments on commit 7a74182

Please sign in to comment.