37 lines
1.6 KiB
HTML
37 lines
1.6 KiB
HTML
<!-- Fixed navbar -->
|
|
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle collapsed pull-left" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
|
<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="navbar-brand" href="{{ site.baseurl }}/">{{ site.title }}</a>
|
|
</div><!--.navbar-header-->
|
|
|
|
<div class="collapse navbar-collapse" id="navbar">
|
|
<ul class="nav navbar-nav navbar-right">
|
|
{% if site.navigation %}
|
|
{% for link in site.navigation %}
|
|
<li>
|
|
<a href="{{ link.url | prepend: site.baseurl }}">{{ link.title }}</a>
|
|
<li>
|
|
{% endfor %}
|
|
{% else %}
|
|
{% for page in site.pages %}
|
|
{% if page.title %}
|
|
{% if page.permalink != "/" %}
|
|
<li>
|
|
<a href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
|
|
<li>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
</ul>
|
|
</div><!--#navbar-->
|
|
</div><!--.container-->
|
|
|
|
</nav>
|