mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-26 13:08:11 +00:00
more tree fun and top level nav
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
<h3>{{ .Title }}</h3>
|
||||
|
||||
<div class="tree-nav">
|
||||
<ul>
|
||||
{{ template "section-tree-nav" ($.Scratch.Get "secondLevel") }}
|
||||
@@ -7,12 +5,12 @@
|
||||
</div>
|
||||
{{ define "section-tree-nav" }}
|
||||
{{ range .Sections}}
|
||||
<li class="tree-nav-item bg-white"><a href="{{ .RelPermalink}}">{{ .Title }}</a>
|
||||
<li class="tree-nav-item"><a href="{{ .RelPermalink}}">{{ .Title }}</a>
|
||||
{{if gt (len .Sections) 0}}
|
||||
<i class="material-icons pull-right expand-more">expand_more</i>
|
||||
<i class="material-icons pull-right expand-more">add_box</i>
|
||||
<ul class="tree-nav-sublist hide">
|
||||
{{ range .Pages }}
|
||||
<li class="tree-nav-item-child bg-white"><a href="{{ .RelPermalink}}">{{ .Title }}</a></li>
|
||||
<li class="tree-nav-item-child"><a href="{{ .RelPermalink}}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
<ul>
|
||||
{{ template "section-tree-nav" . }}
|
||||
|
||||
Reference in New Issue
Block a user