-
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #694 from NPDebs/conditional_nav
Implement conditional navbar for pages
- Loading branch information
Showing
23 changed files
with
117 additions
and
51 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
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
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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<nav class="navbar is-fixed-top" role="navigation" aria-label="main navigation"> | ||
<div class="container"> | ||
<div class="navbar-brand"> | ||
<a class="navbar-item" href="{% link openseeds/index.md %}"> | ||
<img src="/images/logo.png" alt="OLS"> | ||
</a> | ||
<a | ||
role="button" | ||
class="navbar-burger burger" | ||
aria-label="menu" | ||
aria-expanded="false" | ||
data-target="top-menu" | ||
> | ||
<span aria-hidden="true"></span> <span aria-hidden="true"></span> | ||
<span aria-hidden="true"></span> | ||
</a> | ||
</div> | ||
|
||
<div id="top-menu" class="navbar-menu"> | ||
<div class="navbar-end"> | ||
<div class="navbar-item has-dropdown is-hoverable"> | ||
<a class="navbar-link" href="{% link openseeds/about.md %}">The Program</a> | ||
<div class="navbar-dropdown"> | ||
<a class="navbar-item" href="{% link openseeds/index.md %}#applications"> Applications </a> | ||
<a class="navbar-item" href="{% link openseeds/about.md %}#projects"> Projects </a> | ||
<a class="navbar-item navbar-previous-title" href="{% link openseeds/about.md %}#the-roles"> Role description </a> | ||
<a class="navbar-item" href="{% link openseeds/about.md %}#mentees"> Mentees </a> | ||
<a class="navbar-item" href="{% link openseeds/about.md %}#mentors"> Mentors </a> | ||
<a class="navbar-item" href="{% link openseeds/about.md %}#experts"> Experts </a> | ||
<a class="navbar-item" href="{% link openseeds/about.md %}#facilitators"> Facilitators </a> | ||
</div> | ||
</div> | ||
|
||
<div class="navbar-item has-dropdown is-hoverable"> | ||
<a class="navbar-link" href="{% link openseeds/index.md %}#cohorts">Cohorts</a> | ||
<div class="navbar-dropdown"> | ||
<a class="navbar-item navbar-previous-title" href="{% link openseeds/ols-8/index.md %}">OLS-8</a> | ||
<a class="navbar-item" href="{% link openseeds/ols-8/index.md %}"> Syllabus </a> | ||
<a class="navbar-item" href="{% link openseeds/ols-8/schedule.md %}"> Schedule</a> | ||
<a class="navbar-item" href="{% link openseeds/ols-8/projects-participants.md %}"> Projects & Participants</a> | ||
<a class="navbar-item" href="{% link openseeds/ols-8/index.md %}#mentors"> Mentors & Experts </a> | ||
<a class="navbar-item navbar-previous-title" href="{% link openseeds/index.md %}#cohorts"> Previous cohorts </a> | ||
</div> | ||
</div> | ||
|
||
<a class="navbar-item" href="{% link openseeds/library.md %}"> Video Library </a> | ||
|
||
<div class="navbar-item has-dropdown is-hoverable"> | ||
<a class="navbar-link">About</a> | ||
<div class="navbar-dropdown"> | ||
<a class="navbar-item" href="{% link index.md %}">OLS</a> | ||
<a class="navbar-item" href="{% link people.md %}"> People </a> | ||
<a class="navbar-item" href="{% link community.md %}"> Team </a> | ||
<a class="navbar-item" href="{% link funders.md %}"> Funding & Supporters </a> | ||
<a class="navbar-item" href="{% link partners.md %}"> Partners </a> | ||
<a class="navbar-item" href="{% link publications.md %}"> Citing OLS & Publications </a> | ||
<!--<a class="navbar-item" href="/events"> Events </a>--> | ||
</div> | ||
</div> | ||
|
||
<div class="navbar-item has-dropdown is-hoverable"> | ||
<a class="navbar-link" href="{% link code-of-conduct.md %}">Policies</a> | ||
<div class="navbar-dropdown"> | ||
<a class="navbar-item" href="{{ site.github.owner_url }}/policies-procedures-and-docs/blob/main/CODE_OF_CONDUCT.md"> Code of Conduct </a> | ||
</div> | ||
</div> | ||
|
||
<a class="navbar-item" href="{% link posts.md %}"> Stories </a> | ||
</div> | ||
</div> | ||
</div> | ||
</nav> |
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
--- | ||
layout: base | ||
--- | ||
|
||
{% include _includes/default-header.html %} | ||
{% if page.url contains "/openseeds/" %} | ||
{% include _includes/openseeds-header.html %} | ||
{% else %} | ||
{% include _includes/default-header.html %} | ||
{% endif %} | ||
{{ content }} | ||
{% include _includes/default-footer.html %} |
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
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
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
File renamed without changes.
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
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
Oops, something went wrong.