Prepend links with site baseurl

This commit is contained in:
Alex Carpenter 2015-12-02 21:10:58 -05:00
parent cdf4fc56d3
commit 623ef876f5

View file

@ -1,8 +1,8 @@
<nav class="c-navigation {% if site.fixedNav == 'true' %}is-fixed{% endif %}">
<div class="c-navigation__container u-container">
<a class="c-navigation__item {% if page.url == '/' %}is-active{% endif %}" href="/">Home</a>
<a class="c-navigation__item {% if page.url == '/articles/' %}is-active{% endif %}" href="/articles/">Articles</a>
<a class="c-navigation__item {% if page.url == '/about/' %}is-active{% endif %}" href="/about/">About</a>
<a class="c-navigation__item {% if page.title == '/contact/' %}is-active{% endif %}" href="/contact/">Contact</a>
<a class="c-navigation__item {% if page.url == '/' %}is-active{% endif %}" href="{{ "/" | prepend: site.baseurl }}">Home</a>
<a class="c-navigation__item {% if page.url == '/articles/' %}is-active{% endif %}" href="{{ "/articles/" | prepend: site.baseurl }}">Articles</a>
<a class="c-navigation__item {% if page.url == '/about/' %}is-active{% endif %}" href="{{ "/about/" | prepend: site.baseurl }}">About</a>
<a class="c-navigation__item {% if page.title == '/contact/' %}is-active{% endif %}" href="{{ "/contact/" | prepend: site.baseurl }}">Contact</a>
</div>
</nav>