Skip to content

Commit 3362b37

Browse files
committed
style: remove dropdown from navbar links
Signed-off-by: Akshay Mestry <[email protected]>
1 parent 35098d7 commit 3362b37

File tree

2 files changed

+13
-27
lines changed

2 files changed

+13
-27
lines changed

coeus_sphinx_theme/navbar.html.jinja

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Coeus Sphinx Theme Main Navigation Bar Template
44
55
Author: Akshay Mestry <[email protected]>
66
Created on: Sunday, October 06 2024
7-
Last updated on: Sunday, November 24 2024
7+
Last updated on: Saturday, December 07 2024
88
-->
99
<header class="header-pill glass-bevel">
1010
{%- block header_left %}
@@ -45,18 +45,11 @@ Last updated on: Sunday, November 24 2024
4545
{%- if navbar_links|tobool -%}
4646
<nav>
4747
{%- for caption, pages in navbar_links.items() %}
48-
<div class="header-dropdown">
49-
<button>{{ caption }}</button>
50-
<div class="header-dropdown-content glass-bevel">
51-
{%- for title, url in pages.items() %}
52-
{%- if url.startswith("http") %}
53-
<a href="{{ url }}" rel="nofollow noopener">{{ title }}</a>
54-
{%- else %}
55-
<a href="{{ pathto(url) }}">{{ title }}</a>
56-
{%- endif %}
57-
{%- endfor %}
58-
</div>
59-
</div>
48+
{%- if pages.startswith("http") %}
49+
<a href="{{ pages }}" rel="nofollow noopener">{{ caption }}</a>
50+
{%- else %}
51+
<a href="{{ pathto(pages) }}">{{ caption }}</a>
52+
{%- endif %}
6053
{%- endfor %}
6154
</nav>
6255
{%- endif %}

coeus_sphinx_theme/navbar_links.html.jinja

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,17 @@ Coeus Sphinx Theme Navigation Bar Template
44
55
Author: Akshay Mestry <[email protected]>
66
Created on: Monday, August 26 2024
7-
Last updated on: Monday, August 26 2024
7+
Last updated on: Saturday, December 07 2024
88
-->
99
{% block navigation_bar_links %}
1010
{%- if navbar_links|tobool -%}
1111
<nav class="flex md:hidden flex-col font-medium mt-4">
12-
{%- for caption, pages in navbar_links.items() %}
13-
<div class="dropdown">
14-
<button class="dropbtn">{{ caption }}</button>
15-
<div class="dropdown-content">
16-
{%- for title, url in pages.items() %}
17-
{%- if url.startswith("http") %}
18-
<a href="{{ url }}" rel="nofollow noopener">{{ title }}</a>
19-
{%- else %}
20-
<a href="{{ pathto(url) }}">{{ title }}</a>
21-
{%- endif %}
22-
{%- endfor %}
23-
</div>
24-
</div>
12+
{%- for caption, pages in navbar_links.items()%}
13+
{%- if pages.startswith("http") %}
14+
<a href="{{ pages }}" rel="nofollow noopener">{{ caption }}</a>
15+
{%- else %}
16+
<a href="{{ pathto(pages) }}">{{ caption }}</a>
17+
{%- endif %}
2518
{%- endfor %}
2619
</nav>
2720
{%- endif %}

0 commit comments

Comments
 (0)