hacks-guide-minimal-mistake.../_includes/navigation.html

20 lines
659 B
HTML
Raw Normal View History

2013-05-24 16:25:31 +02:00
<div class="navigation-wrapper">
<div class="site-name">
2016-02-22 22:16:15 +01:00
<a href="{{ absurl }}/">{{ site.title }}</a>
2013-05-24 16:25:31 +02:00
</div><!-- /.site-name -->
<div class="top-navigation">
<nav id="site-nav" class="nav">
2013-05-24 16:25:31 +02:00
<ul>
2016-02-22 22:16:15 +01:00
{% for link in site.data.navigation %}
2014-12-22 18:25:03 +01:00
{% if link.url contains 'http' %}
2016-02-22 22:16:15 +01:00
{% assign domain = '' %}
{% else %}
{% assign domain = absurl %}
2014-12-22 18:25:03 +01:00
{% endif %}
<li><a href="{{ domain }}{{ link.url }}" {% if link.url contains 'http' %}target="_blank"{% endif %}>{{ link.title }}</a></li>
2016-02-22 22:16:15 +01:00
{% endfor %}
2013-05-24 16:25:31 +02:00
</ul>
</nav>
</div><!-- /.top-navigation -->
</div><!-- /.navigation-wrapper -->