more menu setup

This commit is contained in:
lvuch
2018-04-23 17:02:17 -07:00
parent 52b6de4f9c
commit 3b7bc89e41
82 changed files with 599 additions and 273 deletions
+4 -3
View File
@@ -10,19 +10,20 @@
{{ end }}
-->
<h3>{{ .Title }}</h3>
{{ $home := .Site.Home }}
<div class="tree-nav">
<ul>
<!-- <li><a href="{{ .RelPermalink}}">Home</a></li> -->
<ul>
{{ template "section-tree-nav" $home }}
{{ template "section-tree-nav" ($.Scratch.Get "secondLevel") }}
}}
</ul>
</ul>
</div>
{{ define "section-tree-nav" }}
{{ range .Sections}}
<!-- <li> -->
<li class="bg-white"><a href="{{ .RelPermalink}}"><i class="material-icons bg-accent p-a-xs">folder</i>{{ .Title }}<i class="material-icons pull-right">keyboard_arrow_down</i></a>
<li class="bg-white"><a href="{{ .RelPermalink}}">{{ .Title }}<i class="material-icons pull-right">keyboard_arrow_down</i></a>
<ul>
{{ range .Pages }}
<li class="bg-white"><a href="{{ .RelPermalink}}">{{ .Title }}</a></li>