Handle the nesting properly

This commit is contained in:
Las Zenow 2012-08-28 12:24:11 +02:00
parent de721f5ff3
commit 9a3e50b193
2 changed files with 11 additions and 11 deletions

View file

@ -19,13 +19,13 @@
<div class="row">
<div class="span4">
{{range .Chapters}}
{{if .In}}
{{range .Out}}
</ul>
{{end}}
{{range .In}}
<ul class="nav nav-list">
{{end}}
<li {{if .Active}}class="active"{{end}}><a href="{{.Link}}">{{.Label}}</a></li>
{{if .Out}}
</ul>
{{end}}
{{end}}
{{if .Chapters}}
</ul>