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

19 lines
691 B
HTML
Raw Normal View History

2013-05-24 16:25:31 +02:00
<div class="navigation-wrapper">
<div class="site-name">
<a href="{{ site.url }}">{{ site.title }}</a>
</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 %}
{% 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 -->