forked from brianmaierjr/long-haul
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b4e2c8
commit 8017f67
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div class="header {% if site.header == 'large' %}header--large{% endif %}"> | ||
<div class="container"> | ||
<h1 class="logo"><a href="{{ '/' | relative_url }}">{{ site.title }}</a></h1> | ||
<nav class="nav-collapse"> | ||
<ul class="noList"> | ||
{%- for link in site.navigation -%}{%- assign current = nil -%}{%- if page.url contains link.url or forloop.first and page.url == '/' or page.url == 'index.html' -%}{%- assign current = 'current' -%}{%- endif -%} | ||
<li class="element {%- if forloop.first -%}first{%- endif -%} {{ current }} {%- if forloop.last -%}last{%- endif -%}"> | ||
<a href="{{ link.url | relative_url }}">{{ link.title }}</a> | ||
</li> | ||
{%- endfor -%} | ||
<li> <a href="https://github.com/thinkdancer" target="_blank">GitHub</a></li> | ||
</ul> | ||
</nav> | ||
</div> | ||
</div><!-- end .header --> |