update nav

This commit is contained in:
2025-06-11 11:40:47 +03:00
parent 9e778c3761
commit 8d422d0e33
2 changed files with 10 additions and 5 deletions

View File

@@ -56,3 +56,8 @@ extra:
{% end %}
- [Mycelium]("https://www.mycelium.threefold.io/")
- [AIBox]("https://aibox.threefold.io/")

View File

@@ -35,11 +35,11 @@
{% set link_path = header_label | split(pat="%22") | safe%}
{% set current = get_url(path=link_path[1]) ~ "/" %}
{% if header_label is containing("http") %}
{% if header_label is not containing("threefold") %}
<a href="{{link_path[1]}}" target="_blank" class="text-lg py-3 leading-6 font-light text-pretty tracking-wide text-white focus:outline-none focus:text-gray-200 transition ease-in-out duration-150">
{{link_label}}
</a>
{% endif %}
{% elif current_url and current == current_url %}
<a href="{{ get_url(path=link_path[1])}}" class="text-lg py-3 leading-6 font-light active text-pretty tracking-wide transition ease-in-out duration-150">
{{link_label}}
@@ -62,7 +62,7 @@
{% endif %}
{% endfor %}
</nav>
<div class="hidden md:inline-block md:order-last">
<div class="inline-flex">
{# <ul class="list-none inline-flex mt-5 mr-4 mx-auto">
@@ -160,11 +160,11 @@
{% set link_label = header_label | striptags %}
{% set link_path = header_label | split(pat="%22") | safe%}
{% if header_label is containing("http") %}
{% if header_label is not containing("threefold") %}
<a href="{{link_path[1]}}" target="_blank" class="text-lg px-8 py-3 leading-6 font-normal text-gray-50 hover:text-gray-200 focus:outline-none focus:text-gray-50 transition ease-in-out duration-150">
{{link_label}}
</a>
{% endif %}
{% else %}
<a href="{{ get_url(path=link_path[1])}}" class="text-lg px-8 py-3 leading-6 font-normal text-white hover:text-white focus:outline-none focus:text-gray-100 transition ease-in-out duration-150">
{{link_label}}