34 lines
1.5 KiB
HTML
34 lines
1.5 KiB
HTML
|
<!-- Navigation -->
|
||
|
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
|
||
|
<div class="container">
|
||
|
<!-- Brand and toggle get grouped for better mobile display -->
|
||
|
<div class="navbar-header page-scroll">
|
||
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||
|
<span class="sr-only">Toggle navigation</span>
|
||
|
<span class="icon-bar"></span>
|
||
|
<span class="icon-bar"></span>
|
||
|
<span class="icon-bar"></span>
|
||
|
</button>
|
||
|
<a class="page-scroll navbar-brand" href="#intro">{{ .Site.Params.Navbar_text }}</a>
|
||
|
</div>
|
||
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
||
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||
|
<ul class="nav navbar-nav navbar-right">
|
||
|
{{ range .Data.Pages }}
|
||
|
<li>
|
||
|
<a class="page-scroll" href="#{{ .File.BaseFileName }}">
|
||
|
{{ if isset .Params "link_text" }}
|
||
|
{{ index .Params "link_text" }}
|
||
|
{{ else }}
|
||
|
{{ index .Title }}
|
||
|
{{ end }}
|
||
|
</a>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
</div>
|
||
|
<!-- /.navbar-collapse -->
|
||
|
</div>
|
||
|
<!-- /.container -->
|
||
|
</nav>
|