2014-05-28 01:37:33 -04:00
|
|
|
<!--sidebar start-->
|
|
|
|
<aside>
|
2015-01-09 13:51:15 -05:00
|
|
|
<div id="sidebar" class="nav-collapse">
|
2014-05-28 01:37:33 -04:00
|
|
|
<!-- 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>
|
2014-08-20 13:13:51 -04:00
|
|
|
<span class="menu-arrow fa {{if $currentNode.HasMenuCurrent "main" . }}fa-angle-down{{else}}fa-angle-right{{end}}"></span>
|
2014-05-28 01:37:33 -04:00
|
|
|
</a>
|
2014-08-20 13:13:51 -04:00
|
|
|
<ul class="sub{{if $currentNode.HasMenuCurrent "main" . }} open{{end}}">
|
2014-05-28 01:37:33 -04:00
|
|
|
{{ range .Children }}
|
2015-03-18 02:44:12 -04:00
|
|
|
<li{{if $currentNode.IsMenuCurrent "main" . }} class="active"{{end}}><a href="{{.URL}}">{{ .Name }}</a> </li>
|
2014-05-28 01:37:33 -04:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{else}}
|
|
|
|
<li>
|
2015-03-18 02:44:12 -04:00
|
|
|
<a class="" href="{{.URL}}">
|
2014-05-28 01:37:33 -04:00
|
|
|
{{ .Pre }}
|
|
|
|
<!--<i class="icon_house_alt"></i>-->
|
|
|
|
<span>{{ .Name }}</span>
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
</li>
|
|
|
|
{{end}}
|
2015-01-19 03:49:12 -05:00
|
|
|
<li> <a href="https://github.com/spf13/hugo/issues" target="blank"><i class='fa fa-life-ring'></i> <span>Issues & Help</span></a> </li>
|
2014-08-19 21:28:37 -04:00
|
|
|
{{ if .IsPage }}
|
2014-10-16 20:20:09 -04:00
|
|
|
{{ $File := .File }} {{with $File.Path }}<li><a href="https://github.com/spf13/hugo/edit/master/docs/content/{{ $File.Dir }}{{ $File.LogicalName }}" target="blank"><i class='fa fa-edit'></i> Refine this Page</a> </li>{{end}}
|
2014-08-19 21:28:37 -04:00
|
|
|
{{ end }}
|
2014-05-28 01:37:33 -04:00
|
|
|
</ul>
|
|
|
|
<!-- sidebar menu end-->
|
|
|
|
</div>
|
|
|
|
</aside>
|
|
|
|
<!--sidebar end-->
|