-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
6 changed files
with
115 additions
and
69 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,62 @@ | ||
<header class="navbar navbar-expand-md navbar-custom" id="top"> | ||
<div class="container"> | ||
<a class="navbar-brand" href="{{ '/' | relative_url }}">{{ site.name }}</a> | ||
|
||
<button | ||
class="navbar-toggler" | ||
type="button" | ||
data-toggle="collapse" | ||
data-target="#navbarSupportedContent" | ||
aria-controls="navbarSupportedContent" | ||
aria-expanded="false" | ||
aria-label="Toggle navigation" | ||
> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
|
||
<nav class="navbar-collapse collapse" role="navigation" id="navbarSupportedContent"> | ||
<ul class="navbar-nav"> | ||
{% assign sorted_pages = site.pages | sort: "order" %} | ||
{% for p in sorted_pages %} | ||
{% assign is_homepage = false %} | ||
{% if p.homepage == true or p.isHome == true %} | ||
{% assign is_homepage = true %} | ||
{% endif %} | ||
|
||
{% assign show_in_menu = true %} | ||
{% if p.show_in_menu != nil and p.show_in_menu == false %} | ||
{% assign show_in_menu = false %} | ||
{% elsif p.hide != nil and p.hide == true %} | ||
{% assign show_in_menu = false %} | ||
{% endif %} | ||
|
||
{% if is_homepage != true and show_in_menu == true and p.title %} | ||
<li class="nav-item {% if page.title == p.title %}active{% endif %}"> | ||
<a | ||
class="nav-link" | ||
href="{{ p.url | relative_url }}" | ||
> | ||
{{ p.title }} | ||
</a> | ||
</li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
<ul class="navbar-nav ml-auto"> | ||
{% for p in site.links.header %} | ||
<li class="nav-item {% if page.title == p.title %}active{% endif %}"> | ||
<a | ||
class="nav-link" | ||
href="{{ p.url }}" | ||
> | ||
{% include fa-icon.html icon=p.icon brand=p.brand %} | ||
{{ p.title }} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</nav> | ||
</div> | ||
</header> |
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
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