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>
|
|
|
|
<a class="navbar-brand" href="{{ site.url }}">{{ site.title }}</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="main-navbar">
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
{% for link in site.navbar-links %}
|
2015-11-19 10:37:41 +01:00
|
|
|
{% capture before %}{{ link[1] | split: "://" | first }}{% endcapture %}
|
|
|
|
{% capture after %}{{ link[1] | split: "://" | last }}{% endcapture %}
|
2015-03-02 21:06:05 +01:00
|
|
|
<li>
|
2015-11-19 10:37:41 +01:00
|
|
|
{% assign internal = true %}
|
|
|
|
{% if before != after %}
|
|
|
|
{% if before == "http" or before == "https" %}
|
|
|
|
{% assign internal = false %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2016-02-07 17:22:13 +01:00
|
|
|
|
2015-11-19 10:37:41 +01:00
|
|
|
{% if internal %}
|
|
|
|
{% capture linkurl %}{{ site.baseurl }}/{{ link[1] }}{% endcapture %}
|
|
|
|
{% else %}
|
|
|
|
{% capture linkurl %}{{ link[1] }}{% endcapture %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<a href="{{ linkurl }}">{{ link[0] }}</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
2015-03-02 21:06:05 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
2016-02-07 17:22:13 +01:00
|
|
|
|
2016-02-08 23:40:05 +01:00
|
|
|
{% if 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">
|
|
|
|
<a href="{{ site.url }} ">
|
|
|
|
<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>
|