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>

View File

@ -1,15 +0,0 @@
Title: Start
NoContainer: true
---
@section Splash {
<div id="hero" class="jumbotron jumbotron-fluid mb-0">
<div class="container">
<div class="display-4 text-white">Spectre.Console</div>
<p class="lead text-white">
A .NET Standard library that makes it easier to create beautiful console applications.
<br /><br />
<a class="btn btn-primary" href="/spectre.console/docs" role="button">Take me to the documentation</a>
</p>
</div>
</div>
}