-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: remove dropdown from navbar links
Signed-off-by: Akshay Mestry <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ Coeus Sphinx Theme Main Navigation Bar Template | |
Author: Akshay Mestry <[email protected]> | ||
Created on: Sunday, October 06 2024 | ||
Last updated on: Sunday, November 24 2024 | ||
Last updated on: Saturday, December 07 2024 | ||
--> | ||
<header class="header-pill glass-bevel"> | ||
{%- block header_left %} | ||
|
@@ -45,18 +45,11 @@ Last updated on: Sunday, November 24 2024 | |
{%- if navbar_links|tobool -%} | ||
<nav> | ||
{%- for caption, pages in navbar_links.items() %} | ||
<div class="header-dropdown"> | ||
<button>{{ caption }}</button> | ||
<div class="header-dropdown-content glass-bevel"> | ||
{%- for title, url in pages.items() %} | ||
{%- if url.startswith("http") %} | ||
<a href="{{ url }}" rel="nofollow noopener">{{ title }}</a> | ||
{%- else %} | ||
<a href="{{ pathto(url) }}">{{ title }}</a> | ||
{%- endif %} | ||
{%- endfor %} | ||
</div> | ||
</div> | ||
{%- if pages.startswith("http") %} | ||
<a href="{{ pages }}" rel="nofollow noopener">{{ caption }}</a> | ||
{%- else %} | ||
<a href="{{ pathto(pages) }}">{{ caption }}</a> | ||
{%- endif %} | ||
{%- endfor %} | ||
</nav> | ||
{%- endif %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,24 +4,17 @@ Coeus Sphinx Theme Navigation Bar Template | |
Author: Akshay Mestry <[email protected]> | ||
Created on: Monday, August 26 2024 | ||
Last updated on: Monday, August 26 2024 | ||
Last updated on: Saturday, December 07 2024 | ||
--> | ||
{% block navigation_bar_links %} | ||
{%- if navbar_links|tobool -%} | ||
<nav class="flex md:hidden flex-col font-medium mt-4"> | ||
{%- for caption, pages in navbar_links.items() %} | ||
<div class="dropdown"> | ||
<button class="dropbtn">{{ caption }}</button> | ||
<div class="dropdown-content"> | ||
{%- for title, url in pages.items() %} | ||
{%- if url.startswith("http") %} | ||
<a href="{{ url }}" rel="nofollow noopener">{{ title }}</a> | ||
{%- else %} | ||
<a href="{{ pathto(url) }}">{{ title }}</a> | ||
{%- endif %} | ||
{%- endfor %} | ||
</div> | ||
</div> | ||
{%- for caption, pages in navbar_links.items()%} | ||
{%- if pages.startswith("http") %} | ||
<a href="{{ pages }}" rel="nofollow noopener">{{ caption }}</a> | ||
{%- else %} | ||
<a href="{{ pathto(pages) }}">{{ caption }}</a> | ||
{%- endif %} | ||
{%- endfor %} | ||
</nav> | ||
{%- endif %} | ||
|