Fix home linke path
This commit is contained in:
parent
96e60f2467
commit
2cd25f2ca0
1 changed files with 8 additions and 8 deletions
|
@ -1,18 +1,18 @@
|
|||
<div class="navigation-wrapper">
|
||||
<div class="site-name">
|
||||
<a href="{{ site.url }}">{{ site.title }}</a>
|
||||
<a href="{{ site.url }}/">{{ site.title }}</a>
|
||||
</div><!-- /.site-name -->
|
||||
<div class="top-navigation">
|
||||
<nav role="navigation" id="site-nav" class="nav">
|
||||
<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 %}
|
||||
{% 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 %}
|
||||
</ul>
|
||||
</nav>
|
||||
</div><!-- /.top-navigation -->
|
||||
|
|
Loading…
Add table
Reference in a new issue