| 1 |
<!--sidebar start--> |
| 2 |
<aside id="sidebar" class="sidebar"> |
| 3 |
<div class="ssidebar nav-collapse"> |
| 4 |
<div class="ssidebarwrapper"> |
| 5 |
<h3> |
| 6 |
<a class="index-link" href="{{ .Site.BaseURL}}/../">{{ .Site.Title }}</a>{{ $baseUrl := .Site.BaseURL}} |
| 7 |
{{ with .Site.Data.mongodb.currentVersion }}<a class="version pull-right" href="{{$baseUrl}}">{{ . }}</a>{{ end }} |
| 8 |
</h3> |
| 9 |
|
| 10 |
<!-- sidebar menu start--> |
| 11 |
<ul class="sidebar-menu"> |
| 12 |
{{- $menuNodeLevel := $.Scratch.Set "menu.NodeLevel" 1 -}} |
| 13 |
{{- $menu := .Site.Menus.main -}} |
| 14 |
{{- $.Scratch.Set "menu.Found" false -}} |
| 15 |
{{- $.Scratch.Set "menu.Item.L6" false -}} |
| 16 |
{{- $.Scratch.Set "menu.Item.L5" false -}} |
| 17 |
{{- $.Scratch.Set "menu.Item.L4" false -}} |
| 18 |
{{- $.Scratch.Set "menu.Item.L3" false -}} |
| 19 |
{{- $.Scratch.Set "menu.Item.L2" false -}} |
| 20 |
{{- $.Scratch.Set "menu.Item.L1" false -}} |
| 21 |
{{- $.Scratch.Set "menu.Item.L0" false -}} |
| 22 |
{{- $.Scratch.Set "menu.Prev" false -}} |
| 23 |
{{- $.Scratch.Set "menu.Next" false -}} |
| 24 |
|
| 25 |
{{- $currentNode := . -}} |
| 26 |
{{- range $menu.ByWeight -}} |
| 27 |
{{- $.Scratch.Set "menu.Item" . -}} |
| 28 |
{{ partial "menu/currentItem.html" $currentNode }} |
| 29 |
{{- end -}} |
| 30 |
|
| 31 |
{{- if eq ($.Scratch.Get "menu.Found") false -}} |
| 32 |
{{- $.Scratch.Set "menu.Item.L6" false -}} |
| 33 |
{{- $.Scratch.Set "menu.Item.L5" false -}} |
| 34 |
{{- $.Scratch.Set "menu.Item.L4" false -}} |
| 35 |
{{- $.Scratch.Set "menu.Item.L3" false -}} |
| 36 |
{{- $.Scratch.Set "menu.Item.L2" false -}} |
| 37 |
{{- $.Scratch.Set "menu.Item.L1" false -}} |
| 38 |
{{- $.Scratch.Set "menu.Item.L0" false -}} |
| 39 |
{{- end -}} |
| 40 |
|
| 41 |
{{- range $menu.ByWeight -}} |
| 42 |
{{- $.Scratch.Set "menu.Item" . -}} |
| 43 |
{{- partial "menu/item.html" $currentNode -}} |
| 44 |
{{- end -}} |
| 45 |
</ul> |
| 46 |
<!-- sidebar menu end--> |
| 47 |
</div> |
| 48 |
</div> |
| 49 |
{{- partial "menu/footer.html" . -}} |
| 50 |
</aside> |
| 51 |
<!--sidebar end--> |
| 52 |
{{- partial "menu/options.html" . -}} |