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>
|
/// </summary>
|
||||||
public string SiteUrl { get; set; } = "";
|
public string SiteUrl { get; set; } = "";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Site title
|
||||||
|
/// </summary>
|
||||||
|
public string SiteTitle { get; set; } = "";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Post URL format, appended to end of Site URL, automatically opened on publish completion.
|
/// 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.
|
/// 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)
|
public void LoadFromBlogSettings(IBlogSettingsAccessor blogSettings)
|
||||||
{
|
{
|
||||||
SiteUrl = blogSettings.HomepageUrl;
|
SiteUrl = blogSettings.HomepageUrl;
|
||||||
|
SiteTitle = blogSettings.BlogName;
|
||||||
|
|
||||||
LoadFromCredentials(blogSettings.Credentials);
|
LoadFromCredentials(blogSettings.Credentials);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue