mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-05-17 10:25:16 +00:00
80 lines
2.3 KiB
HTML
80 lines
2.3 KiB
HTML
{{ $.Scratch.Set "topLevel" . }}
|
|
{{ range $product := $.Site.Sections }}
|
|
{{ range $version := .Sections }}
|
|
{{ range $language := .Sections }}
|
|
{{if $.CurrentSection}}
|
|
{{ if .IsAncestor $.CurrentSection }}
|
|
{{ $.Scratch.Set "topLevel" . }}
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|
|
|
|
<!-- product dropdown -->
|
|
<div class="side-menus-container product-select jquery-accordion-menu">
|
|
<ul class="side-menus-wrap">
|
|
<li class="">
|
|
<a href="{{ ($.Scratch.Get "topLevel").Permalink }}" class="">
|
|
<span class="">
|
|
{{ range $product := $.Site.Sections }}
|
|
{{ range $version := .Sections }}
|
|
{{ range $language := .Sections }}
|
|
{{if $.CurrentSection}}
|
|
{{ if .IsAncestor $.CurrentSection }}
|
|
{{ .Params.shortTitle }}
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|
|
</span>
|
|
</a>
|
|
|
|
<ul class="submenu submenus-wrap">
|
|
{{ range $product := $.Site.Sections }}
|
|
{{ range $version := .Sections }}
|
|
{{ range $language := .Sections }}
|
|
<li><a href="{{ .Permalink }}">{{ .Params.shortTitle }}</a></li>
|
|
{{ if .Params.insertonesix }}
|
|
<li><a href="https://rancher.com/docs/rancher/v1.6/en/" target="blank">Rancher 1.6</a></li>
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="guide-menus-activator">
|
|
Quick start guides
|
|
|
|
<span class="indicator">
|
|
<span class="object1"></span>
|
|
<span class="object2"></span>
|
|
<span class="object3"></span>
|
|
</span>
|
|
</div>
|
|
<div class="side-menus-container guide-menus jquery-accordion-menu">
|
|
<ul class="side-menus-wrap second">
|
|
{{ template "section-tree-nav" ($.Scratch.Get "topLevel") }}
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
{{ define "section-tree-nav" }}
|
|
{{ range .Sections}}
|
|
<li class=""><a href="{{ .RelPermalink}}">{{ .Title }}</a>
|
|
{{if gt (len .Sections) 0}}
|
|
<ul class="submenu submenus-wrap">
|
|
{{ range .Pages }}
|
|
<li class=""><a href="{{ .RelPermalink}}">{{ .Title }}</a></li>
|
|
{{ end }}
|
|
{{ template "section-tree-nav" . }}
|
|
</ul>
|
|
{{end}}
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|