2014-04-24 16:28:11 +00:00
|
|
|
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
|
|
|
<!-- Brand and toggle get grouped for better mobile display -->
|
2013-10-26 06:18:14 +00:00
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
2014-01-08 14:18:42 +00:00
|
|
|
<a class="navbar-brand" href="/"><i class="icon-hugo_serif" alt="hugo"></i></a>
|
2013-10-26 06:18:14 +00:00
|
|
|
</div>
|
2013-10-25 22:42:46 +00:00
|
|
|
|
2013-10-26 06:18:14 +00:00
|
|
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
|
|
<div class="collapse navbar-collapse navbar-ex1-collapse">
|
|
|
|
<ul class="nav navbar-nav">
|
2014-04-23 07:00:11 +00:00
|
|
|
{{ $currentNode := . }}
|
|
|
|
{{ range .Site.Menus.main }}
|
|
|
|
{{ if .HasChildren }}
|
2014-04-24 16:34:50 +00:00
|
|
|
<li class="dropdown{{if $currentNode.HasMenuCurrent "main" . }} active{{end}}">
|
2014-04-23 07:00:11 +00:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{.Name}} <b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
{{ range .Children }}
|
|
|
|
<li{{if $currentNode.IsMenuCurrent "main" .Name}} class="active"{{end}}><a href="{{.Url}}"> {{ .Name }} </a> </li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{else}}
|
|
|
|
<li>
|
|
|
|
<a href="{{.Url}}"> {{ .Name }} </a>
|
|
|
|
{{end}}
|
|
|
|
</li>
|
|
|
|
{{end}}
|
2013-10-26 06:18:14 +00:00
|
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
2014-04-23 07:00:11 +00:00
|
|
|
{{ $currentNode := . }}
|
|
|
|
{{ $menu := "right"}}
|
|
|
|
{{ range .Site.Menus.right }}
|
|
|
|
{{ if .HasChildren }}
|
|
|
|
<li class="dropdown{{if $currentNode.HasMenuCurrent $menu . }} active-child{{end}}">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{.Name}} <b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
{{ range .Children }}
|
|
|
|
<li{{if $currentNode.IsMenuCurrent $menu .Name}} class="active"{{end}}><a href="{{.Url}}"> {{ .Name }} </a> </li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{else}}
|
|
|
|
<li>
|
|
|
|
<a href="{{.Url}}"> {{ .Name }} </a>
|
|
|
|
{{end}}
|
|
|
|
</li>
|
|
|
|
{{end}}
|
2013-10-26 06:18:14 +00:00
|
|
|
<li><a href="http://github.com/spf13/hugo/releases"><i class="icon-arrow-down "> </i></a></li>
|
|
|
|
<li><a href="http://github.com/spf13/hugo"><i class="icon-octocat icon-2x"> </i></a></li>
|
|
|
|
</ul>
|
|
|
|
</div><!-- /.navbar-collapse -->
|
|
|
|
</nav>
|