Revert "index for sub pages"

This commit is contained in:
Denise
2018-07-24 09:37:05 -07:00
parent 62d662e59a
commit 737cc156d1
5 changed files with 64 additions and 57 deletions
-1
View File
@@ -46,7 +46,6 @@
</ul>
</li>
</ul>
<!-- end product dropdown -->
<div class="tree-nav invisible">
<ul>
+5 -9
View File
@@ -1,23 +1,19 @@
<div class="page-nav">
<ol>
<ul>
{{ template "page-nav" . }}
</ol>
</ul>
</div>
{{ define "page-nav" }}
{{ range .Sections}}
<li class="">
<a href="{{ .RelPermalink}}">{{ .Title }}</a>
{{ with .Params.Description }}
<p>{{ . }}</p>
{{end}}
<li class=""><a href="{{ .RelPermalink}}">{{ .Title }}</a>
{{if gt (len .Sections) 0}}
<!-- <i class="material-icons expand-toggle">add_box</i> -->
<ol>
<ul class="hide">
{{ range .Pages }}
<li class=""><a href="{{ .RelPermalink}}">{{ .Title }}</a></li>
{{ end }}
{{ template "page-nav" . }}
</ol>
</ul>
{{end}}
</li>
{{ end }}