cpred/_includes/header.html
Florian 1e46bd764a
All checks were successful
Deploy Jekyll site to Pages / build (push) Successful in 2m17s
Add attributes overview and update skills page weight
2025-05-06 12:37:22 +02:00

40 lines
1.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% 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>