diff --git a/src/DocNet/Config.cs b/src/DocNet/Config.cs index 8fcbcee..256a48a 100644 --- a/src/DocNet/Config.cs +++ b/src/DocNet/Config.cs @@ -218,6 +218,15 @@ namespace Docnet } } + public string StartingPageName + { + get + { + string rawName = _configData.StartingPageName; + return string.IsNullOrWhiteSpace(rawName) ? "Home" : rawName; + } + } + public string IncludeFolder { get @@ -336,7 +345,7 @@ namespace Docnet if(_pages == null) { JObject rawPages = _configData.Pages; - _pages = new NavigationLevel(Source) {Name = "Home", IsRoot = true}; + _pages = new NavigationLevel(Source) {Name = StartingPageName, IsRoot = true}; _pages.Load(rawPages); } return _pages;