Moves all the pages up a level and hardcodes the section name

This commit is contained in:
Dave Glick
2020-09-01 15:12:21 -04:00
committed by Patrik Svensson
parent 65f0a085cc
commit caf7661e66
10 changed files with 2 additions and 17 deletions

View File

@ -53,7 +53,7 @@
@RenderSection(Constants.Sections.Splash, false)
}
@{
string section = Document.Destination.Segments.Length > 1 ? Document.Destination.Segments[0].ToString() : null;
string section = "docs";
}
<div class="flex-grow-1 d-flex bg-body flex-column @(section != null ? "section-" + section : null)">
@ -126,7 +126,7 @@
}
else
{
IDocument root = OutputPages[section + "/index.html"].First();
IDocument root = OutputPages["index.html"].First();
<div class="sidebar-nav-item @(Document.IdEquals(root) ? "active" : null)">
@Html.DocumentLink(root)
</div>