2014-05-28 01:37:33 -04:00
|
|
|
<!--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 arrow_carrot-right"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="sub">
|
|
|
|
{{ 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/spf13/hugo/issues" target="blank"><i class='fa fa-life-ring'></i>Issues & Help</a> </li>
|
2014-08-19 21:28:37 -04:00
|
|
|
{{ if .IsPage }}
|
|
|
|
{{ $File := .File }} {{with $File.FileName }}<li><a href="https://github.com/spf13/hugo/edit/master/docs/content/{{ $File.Dir }}{{ $File.FileName }}" target="blank"><i class='fa fa-edit'></i> Refine this Page</a> </li>{{end}}
|
|
|
|
{{ end }}
|
2014-05-28 01:37:33 -04:00
|
|
|
</ul>
|
|
|
|
<!-- sidebar menu end-->
|
|
|
|
</div>
|
|
|
|
</aside>
|
|
|
|
<!--sidebar end-->
|