ssg: StaticSitePost: add constructor for post-less instantiation

This commit is contained in:
Nick Vella 2019-07-15 16:53:45 +10:00
parent b81daeb4e0
commit cc61210ad9
1 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,12 @@ namespace OpenLiveWriter.BlogClient.Clients.StaticSite
private StaticSiteConfig SiteConfig;
public BlogPost BlogPost { get; private set; }
public StaticSitePost(StaticSiteConfig config)
{
SiteConfig = config;
BlogPost = null;
}
public StaticSitePost(StaticSiteConfig config, BlogPost blogPost)
{
SiteConfig = config;