mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-26 04:58:07 +00:00
Nav
This commit is contained in:
@@ -33,11 +33,12 @@
|
||||
{{ $topLevel := .Scratch.Get "topLevel"}}
|
||||
{{ if $topLevel }}
|
||||
{{ range $topLevel.Sections }}
|
||||
{{ if .IsAncestor $.CurrentSection }}
|
||||
{{ $isCurrent := .IsAncestor $.CurrentSection }}
|
||||
{{ if $isCurrent }}
|
||||
{{ $.Scratch.Set "secondLevel" . }}
|
||||
{{ end }}
|
||||
|
||||
<li><a href="{{ .Permalink }}" class="">{{ .Title }}</a></li>
|
||||
<li class="{{if $isCurrent}}active{{end}}"><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user