@{ string title = @Document.ContainsKey(Keys.Title) ? $"Spectre.Console - {Document.GetString(Keys.Title)}" : "Spectre.Console"; } @title
@if (IsSectionDefined(Constants.Sections.Splash)) { @RenderSection(Constants.Sections.Splash, false) } @{ string section = "docs"; }
@if(section != null) {
@{ string titleBarClasses = Document.GetBool(Constants.NoSidebar) ? string.Empty : "offset-md-3 offset-lg-2"; }
Spectre.Console
@(Document.GetString(Keys.Title) ?? Document.GetTitle())
@if (IsSectionDefined(Constants.Sections.Subtitle)) { @RenderSection(Constants.Sections.Subtitle, false) }
@if (Document.GetBool(Constants.NoSidebar)) {
} else {
}
}
@if (Document.GetBool(Constants.NoContainer)) {
@RenderBody()
} else {
@if (Document.GetBool(Constants.NoSidebar)) { IgnoreSection(Constants.Sections.Sidebar);
@RenderBody()
} else {
@RenderBody()
}
@{ IReadOnlyList headings = Document.GetDocumentList(Statiq.Html.HtmlKeys.Headings); if (headings.Count > 0) {

On This Page

@foreach (IDocument heading in headings) {

@(await heading.GetContentStringAsync())

}
} } @if (Document.ContainsKey("EditLink")) {

Edit This Page

}
}