36 lines
1.5 KiB
HTML
36 lines
1.5 KiB
HTML
<!-- Navigation -->
|
|
<nav class="navbar 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>
|
|
<div class="page-scroll navbar-brand">
|
|
<a href="#intro">{{ .Site.Params.navbar.text | default .Site.Title }}</a>
|
|
</div>
|
|
</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>
|