ssg: StaticSiteClient: set SupportsPages client option based on if we were passed a pages path, set SupportsPostAsDraft to false

This commit is contained in:
Nick Vella 2019-07-02 17:28:25 +10:00
parent 7cb8954bb0
commit d692a2862d
1 changed files with 5 additions and 2 deletions

View File

@ -153,8 +153,11 @@ namespace OpenLiveWriter.BlogClient.Clients
/// <param name="clientOptions">A BlogClientOptions instance</param>
private void ConfigureClientOptions(BlogClientOptions clientOptions)
{
// Pages are supported via filesystem
clientOptions.SupportsPages = true;
// Pages are supported if a Pages path is provided
clientOptions.SupportsPages = PagesPath.Length > 0;
// Drafts are supported if a Drafts path is provided
clientOptions.SupportsPostAsDraft = false; // TODO ask for a drafts path
// The follwoing values would be written into YAML front-matter
clientOptions.SupportsCategories = true;