summaryrefslogtreecommitdiffhomepage
path: root/docs/layouts/partials/menu.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/layouts/partials/menu.html')
-rw-r--r--docs/layouts/partials/menu.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/docs/layouts/partials/menu.html b/docs/layouts/partials/menu.html
new file mode 100644
index 000000000..d9667291d
--- /dev/null
+++ b/docs/layouts/partials/menu.html
@@ -0,0 +1,40 @@
+<!--sidebar start-->
+<aside>
+ <div id="sidebar" class="nav-collapse">
+ <!-- sidebar menu start-->
+ <ul class="sidebar-menu">
+ {{ $currentNode := . }}
+ {{ range .Site.Menus.main }}
+ {{ if .HasChildren }}
+
+ <li class="sub-menu{{if $currentNode.HasMenuCurrent "main" . }} active{{end}}">
+ <a href="javascript:;" class="">
+ {{ .Pre }}
+ <!--<i class="icon_desktop"></i>-->
+ <span>{{ .Name }}</span>
+ <span class="menu-arrow fa {{if $currentNode.HasMenuCurrent "main" . }}fa-angle-down{{else}}fa-angle-right{{end}}"></span>
+ </a>
+ <ul class="sub{{if $currentNode.HasMenuCurrent "main" . }} open{{end}}">
+ {{ range .Children }}
+ <li{{if $currentNode.IsMenuCurrent "main" . }} class="active"{{end}}><a href="{{.URL}}">{{ .Name }}</a> </li>
+ {{ end }}
+ </ul>
+ {{else}}
+ <li>
+ <a class="" href="{{.URL}}">
+ {{ .Pre }}
+ <!--<i class="icon_house_alt"></i>-->
+ <span>{{ .Name }}</span>
+ </a>
+ {{end}}
+ </li>
+ {{end}}
+ <li> <a href="https://github.com/gohugoio/hugo/issues" target="blank"><i class='fa fa-life-ring'></i> <span>Issues & Help</span></a> </li>
+ {{ if .IsPage }}
+ {{ $File := .File }} {{with $File.Path }}<li><a href="https://github.com/gohugoio/hugoDocs/edit/master/content/{{ $File.Dir }}{{ $File.LogicalName }}" target="blank"><i class='fa fa-edit'></i> Refine this Page</a> </li>{{end}}
+ {{ end }}
+ </ul>
+ <!-- sidebar menu end-->
+ </div>
+</aside>
+<!--sidebar end-->