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

19 lines
683 B
HTML
Raw Normal View History

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