ssg: StaticSiteConfig: SiteTitle attribute, load from BlogSettings

This commit is contained in:
Nick Vella 2019-07-10 18:28:37 +10:00
parent a7b0b4c61d
commit d4692079a3
1 changed files with 7 additions and 0 deletions

View File

@ -93,6 +93,11 @@ namespace OpenLiveWriter.BlogClient.Clients
/// </summary>
public string SiteUrl { get; set; } = "";
/// <summary>
/// Site title
/// </summary>
public string SiteTitle { get; set; } = "";
/// <summary>
/// Post URL format, appended to end of Site URL, automatically opened on publish completion.
/// Supports %y for four-digit year, %m and %d for two-digit months and days, %f for post filename.
@ -141,6 +146,8 @@ namespace OpenLiveWriter.BlogClient.Clients
public void LoadFromBlogSettings(IBlogSettingsAccessor blogSettings)
{
SiteUrl = blogSettings.HomepageUrl;
SiteTitle = blogSettings.BlogName;
LoadFromCredentials(blogSettings.Credentials);
}