diff --git a/docs/Docs.csproj b/docs/Docs.csproj
index 890536e..f3d188b 100644
--- a/docs/Docs.csproj
+++ b/docs/Docs.csproj
@@ -22,7 +22,7 @@
-
+
diff --git a/docs/input/_layout.cshtml b/docs/input/_layout.cshtml
index 9c4fa8b..249b1b2 100644
--- a/docs/input/_layout.cshtml
+++ b/docs/input/_layout.cshtml
@@ -52,7 +52,7 @@
{
@RenderSection(Constants.Sections.Splash, false)
}
- @{
+ @{
string section = Document.Destination.Segments.Length > 1 ? Document.Destination.Segments[0].ToString() : null;
}
@@ -62,7 +62,7 @@
- @{
+ @{
string titleBarClasses = Document.GetBool(Constants.NoSidebar) ? string.Empty : "offset-md-3 offset-lg-2";
}
@@ -97,7 +97,7 @@
}
-
+
@if (Document.GetBool(Constants.NoContainer))
{
@@ -126,21 +126,22 @@
}
else
{
- IDocument root = Outputs[nameof(Content)].First(x => x.Destination == section + "/index.html");
+ IDocument root = OutputPages[section + "/index.html"].First();
- @foreach (IDocument document in root.GetChildren().OnlyVisible())
+ @foreach (IDocument document in OutputPages.GetChildrenOf(root).OnlyVisible())
{
-