From 0e36c274e0d2861a4781523ba7cd6b8efd00d2e6 Mon Sep 17 00:00:00 2001 From: Nick Vella Date: Tue, 16 Jul 2019 19:23:44 +1000 Subject: [PATCH] ssg: StaticSitePostFrontMatter: load NewCategories into tags as well as Categories --- .../Clients/StaticSite/StaticSitePostFrontMatter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managed/OpenLiveWriter.BlogClient/Clients/StaticSite/StaticSitePostFrontMatter.cs b/src/managed/OpenLiveWriter.BlogClient/Clients/StaticSite/StaticSitePostFrontMatter.cs index db887a4f..a4f2e503 100644 --- a/src/managed/OpenLiveWriter.BlogClient/Clients/StaticSite/StaticSitePostFrontMatter.cs +++ b/src/managed/OpenLiveWriter.BlogClient/Clients/StaticSite/StaticSitePostFrontMatter.cs @@ -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";