Browse Source

Merge pull request #80 from Combeenation/StartingPageName

Add a StartingPageName setting.
tags/v0.16.3
Frans Bouma GitHub 7 years ago
parent
commit
b1d7df1893
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      src/DocNet/Config.cs

+ 10
- 1
src/DocNet/Config.cs View File

@@ -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;


Loading…
Cancel
Save