ssg: StaticSitePostFrontMatter: load NewCategories into tags as well as Categories
This commit is contained in:
parent
103d47b376
commit
0e36c274e0
|
@ -98,7 +98,7 @@ namespace OpenLiveWriter.BlogClient.Clients.StaticSite
|
|||
{
|
||||
Id = post.Id;
|
||||
Title = post.Title;
|
||||
Tags = post.Categories.Select(cat => cat.Name).ToArray();
|
||||
Tags = post.Categories.Union(post.NewCategories).Select(cat => cat.Name).ToArray();
|
||||
Date = (post.HasDatePublishedOverride ? post.DatePublishedOverride : post.DatePublished)
|
||||
.ToUniversalTime().ToString("yyyy-MM-dd HH:mm:ss");
|
||||
Layout = post.IsPage ? "page" : "post";
|
||||
|
|
Loading…
Reference in New Issue