ssg: StaticSiteClient: set SupportsPages client option based on if we were passed a pages path, set SupportsPostAsDraft to false
This commit is contained in:
parent
7cb8954bb0
commit
d692a2862d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue