mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 20:48:11 +00:00
Nav fixes
This commit is contained in:
@@ -8,16 +8,22 @@
|
||||
{{ define "main" }}
|
||||
<div class="wrapper">
|
||||
{{ partial "docs-nav.html" . }}
|
||||
{{ $showSidebar := (gt (len ($.Scratch.Get "secondLevel").Sections) 0) }}
|
||||
{{ $secondLevel := ($.Scratch.Get "secondLevel") }}
|
||||
{{ $.Scratch.Set "showSidebar" false }}
|
||||
{{ with $secondLevel }}
|
||||
{{ if (gt (len .Sections) 0) }}
|
||||
{{ $.Scratch.Set "showSidebar" true }}
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
<div class="row m-t-sm">
|
||||
|
||||
{{ if $showSidebar }}
|
||||
{{ if ($.Scratch.Get "showSidebar") }}
|
||||
<aside class="col-sm-3 col-xs-12">
|
||||
{{ partial "docs-side-nav.html" . }}
|
||||
</aside>
|
||||
{{end}}
|
||||
<article class="{{ if $showSidebar }} col-sm-6 {{else}} col-md-9 p-r-lg {{end}} col-xs-12">
|
||||
<article class="{{ if ($.Scratch.Get "showSidebar") }} col-sm-6 {{else}} col-md-9 p-r-lg {{end}} col-xs-12">
|
||||
|
||||
<div class="main-content ">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user