2015-03-02 21:06:05 +01:00
|
|
|
<nav class="navbar navbar-default navbar-fixed-top navbar-custom">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
2016-12-15 22:46:53 +01:00
|
|
|
{% if site.title-img %}
|
|
|
|
<a class="navbar-brand navbar-brand-logo" href="{{ site.url }}"><img src="{{ site.title-img }}"/></a>
|
|
|
|
{% else %}
|
|
|
|
<a class="navbar-brand" href="{{ site.url }}">{{ site.title }}</a>
|
|
|
|
{% endif %}
|
2015-03-02 21:06:05 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="main-navbar">
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
2016-03-18 05:20:11 +01:00
|
|
|
{% for link in site.navbar-links %}
|
|
|
|
{% if link[1].first %}
|
|
|
|
<li class="navlinks-container">
|
|
|
|
<a class="navlinks-parent" href="javascript:void(0)">{{ link[0] }}</a>
|
|
|
|
<div class="navlinks-children">
|
|
|
|
{% for childlink in link[1] %}
|
|
|
|
{% for linkparts in childlink %}
|
2016-03-18 11:04:50 +01:00
|
|
|
{% include navbarlink.html link=linkparts %}
|
2016-03-18 05:20:11 +01:00
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li>
|
2016-03-18 11:04:50 +01:00
|
|
|
{% include navbarlink.html link=link %}
|
2016-03-18 05:20:11 +01:00
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2015-03-02 21:06:05 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
2016-02-07 17:22:13 +01:00
|
|
|
|
2016-12-24 23:48:55 +01:00
|
|
|
{% if page.image and (layout.show-avatar or page.show-avatar) %}
|
|
|
|
<div class="avatar-container">
|
|
|
|
<div class="avatar-img-border">
|
2018-01-05 23:31:43 +01:00
|
|
|
<a href="{{ site.url }}">
|
2016-12-24 23:48:55 +01:00
|
|
|
<img class="avatar-img" src="{{ page.image | prepend: site.baseurl | replace: '//', '/' }}" />
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% elsif site.avatar and (layout.show-avatar or page.show-avatar) %}
|
2015-03-02 21:06:05 +01:00
|
|
|
<div class="avatar-container">
|
|
|
|
<div class="avatar-img-border">
|
2019-01-10 22:22:23 +01:00
|
|
|
<a href="{{ site.url }}">
|
2015-03-02 21:06:05 +01:00
|
|
|
<img class="avatar-img" src="{{ site.avatar | prepend: site.baseurl | replace: '//', '/' }}" />
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2016-02-07 17:22:13 +01:00
|
|
|
|
2015-03-02 21:06:05 +01:00
|
|
|
</div>
|
2016-02-07 17:22:13 +01:00
|
|
|
</nav>
|