This commit is contained in:
Vincent Fiduccia
2018-04-27 01:41:46 -07:00
parent 7060477f28
commit 16feeacbf6
5 changed files with 58 additions and 68 deletions
+4 -6
View File
@@ -1,4 +1,4 @@
<div class="tree-nav">
<div class="tree-nav invisible">
<ul>
{{ template "section-tree-nav" ($.Scratch.Get "secondLevel") }}
</ul>
@@ -7,14 +7,12 @@
{{ range .Sections}}
<li class="tree-nav-item"><a href="{{ .RelPermalink}}">{{ .Title }}</a>
{{if gt (len .Sections) 0}}
<i class="material-icons pull-right expand-more">add_box</i>
<i class="material-icons pull-right expand-toggle">add_box</i>
<ul class="tree-nav-sublist hide">
{{ range .Pages }}
<li class="tree-nav-item-child"><a href="{{ .RelPermalink}}">{{ .Title }}</a></li>
<li class="tree-nav-item-child"><a href="{{ .RelPermalink}}">{{ .Title }}</a></li>
{{ end }}
<ul>
{{ template "section-tree-nav" . }}
</ul>
{{ template "section-tree-nav" . }}
</ul>
{{end}}
</li>