All checks were successful
Deploy Jekyll site to Pages / build (push) Successful in 2m17s
40 lines
1.5 KiB
HTML
40 lines
1.5 KiB
HTML
{% assign menu_pages = site.pages | where_exp: "page", "page.path contains 'pages/'" %}
|
||
{% assign sorted_pages = menu_pages | sort: "weight" %}
|
||
<header>
|
||
<div class="navbar-fixed">
|
||
<nav class="cyber-razor-bottom bg-black">
|
||
<div class="nav-wrapper">
|
||
<a href="{{ "/" | relative_url }}" class="cyberpunk-font-og f-x2-5">{{ site.title }}</a>
|
||
<ul id="nav-mobile" class="right hide-on-med-and-down desktop-only">
|
||
<li><a href="{{ "/" | relative_url }}" class="cyber-a{% if page.url == "/" %} fg-yellow{% endif %}">Home</a></li>
|
||
{% for tab in sorted_pages %}
|
||
{% if tab.title and tab.permalink and tab.nav != false %}
|
||
<li><a href="{{ tab.url | relative_url }}" class="cyber-a{% if page.url contains tab.url %} fg-yellow{% endif %}">{{ tab.title }}</a></li>
|
||
{% endif %}
|
||
{% endfor %}
|
||
</ul>
|
||
</div>
|
||
</nav>
|
||
</div>
|
||
|
||
<!-- WIP: Breadcrumb
|
||
<div class="cyber-att">
|
||
<a href="{{ "/" | relative_url }}">Home</a>
|
||
|
||
{% assign segments = page.url | split: "/" %}
|
||
{% assign path = "" %}
|
||
|
||
{% for segment in segments offset: 1 %}
|
||
{% assign path = path | append: "/" | append: segment %}
|
||
{% assign breadcrumb_page = site.pages | where: "url", path | first %}
|
||
|
||
{% if breadcrumb_page and breadcrumb_page.title %}
|
||
› <a href="{{ path | relative_url }}">{{ breadcrumb_page.title }}</a>
|
||
{% else %}
|
||
› <span>{{ segment }}</span>
|
||
{% endif %}
|
||
{% endfor %}
|
||
</div>
|
||
-->
|
||
</header>
|