(doc) Dynamically generate sections

Rather than hard-coding them.  Then, as the number of sections increase,
no additional changes will be required here.
This commit is contained in:
Gary Ewan Park
2020-10-03 15:25:49 +01:00
committed by Patrik Svensson
parent 5149557560
commit 971f9032ba
2 changed files with 12 additions and 10 deletions

View File

@ -0,0 +1,12 @@
Title: Appendix
Order: 10
---
<h1>Sections</h1>
<ul>
@foreach (IDocument child in OutputPages.GetChildrenOf(Document))
{
<li>@Html.DocumentLink(child)</li>
}
</ul>