Get rid of the mobile menu

It wasn't as good as I would like it to be
This commit is contained in:
daudix
2024-06-10 17:04:02 +03:00
parent 1a51a28945
commit f2644b9b5c
2 changed files with 17 additions and 143 deletions

View File

@ -35,42 +35,11 @@
{% if config.extra.nav.show_feed %}
<li id="feed">
<a href="{{ get_url(path=config.feed_filename) | safe }}">
<i id="feed-icon" class="icon"></i>
<i class="icon"></i>
<span>Feed</span>
</a>
</li>
{% endif %}
<li id="dropdown">
<details>
<summary>
<i id="menu-icon" class="icon"></i>
<span>Menu</span>
</summary>
<ul>
{% for link in config.extra.nav.links %}
{%- if link.url is matching('https?://') %}
<li>
<a href="{{ link.url | safe }}"
{% if current_url | default(value='/') | safe == link.url | safe %}
class="active"
{% endif %}>
{{ link.name }}
</a>
</li>
{%- else %}
<li>
<a href="{{ get_url(path=link.url | safe )}}"
{% if current_url | default(value='/') | safe == get_url(path=link.url) | safe %}
class="active"
{% endif %}>
{{ link.name }}
</a>
</li>
{%- endif %}
{% endfor %}
</ul>
</details>
</li>
</ul>
</nav>
</header>