ssg: StaticSiteConfig: SiteTitle attribute, load from BlogSettings
This commit is contained in:
parent
a7b0b4c61d
commit
d4692079a3
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue