Skip to content

INFRA: add dropdown #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
109 changes: 59 additions & 50 deletions _data/contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,21 @@
packages-editor: ["errdapy", "pandera", "nbless"]
packages-submitted: ["earthpy"]
packages-reviewed: [""]
# Editors
- name: David Nicholson
sort: 2
title: "Editor in Chief"
editor: true
bio: 'Bio goes here just a sentence or two is great!'
organization: ""
github_username: NickleDave
github_image_id: 11934090
## Advisory team
- name: Leonardo Uieda
advisory: true
bio: ''
organization: "University of Liverpool, JOSS"
github_username:
github_image_id: 290082
contributor_type:
- current editor
- contributor
packages-submitted: [""]
packages-reviewed: ["pystiche"]
packages-reviewed: [""]
packages-editor: [""]
- name: Ivan Ogasawara
sort: 1
advisory: true
bio: 'SciPy Latin America Ambassador'
organization: "SciPy Latin America, Ibis-framework"
github_username: xmnlab
Expand All @@ -42,6 +40,56 @@
packages-submitted: [""]
packages-reviewed: ["pandera"]
packages-editor: ["sevivi"]
- name: Filipe Fernandes
advisory: true
bio: ''
organization: "IOOS, Conda Forge"
github_username: ocefpaf
github_image_id: 950575
contributor_type:
- contributor
packages-submitted: ["errdapy"]
packages-reviewed: [""]
packages-editor: [""]
- name: Lindsey Heagy
advisory: true
bio: ''
organization: ""
github_username: lheagy
github_image_id: 6361812
contributor_type:
- contributor
packages-submitted: [""]
packages-reviewed: [""]
packages-editor: [""]
- name: Martin Fleischmann
advisory: true
bio: 'Urban Data Scientist'
organization: "Charles University in Prague, University of Liverpool"
github_username: martinfleis
github_image_id: 36797143
twitter: martinfleis
mastodon: [email protected]
orcidid: 0000-0003-3319-3366
contributor_type:
- reviewer
packages-submitted: [""]
packages-reviewed: ["movingpandas"]
# Editors
- name: David Nicholson
sort: 2
title: "Editor in Chief"
editor: true
bio: 'Bio goes here just a sentence or two is great!'
organization: ""
github_username: NickleDave
github_image_id: 11934090
contributor_type:
- current editor
- contributor
packages-submitted: [""]
packages-reviewed: ["pystiche"]
packages-editor: [""]
- name: Ariane Sasso
bio: 'Researcher in Medical Informatics and Digital Health'
organization: "Hasso Plattner Institute"
Expand Down Expand Up @@ -124,16 +172,6 @@
packages-submitted: [""]
packages-reviewed: [""]
packages-editor: [""]
- name: Filipe Fernandes
bio: ''
organization: "IOOS, Conda Forge"
github_username: ocefpaf
github_image_id: 950575
contributor_type:
- contributor
packages-submitted: ["errdapy"]
packages-reviewed: [""]
packages-editor: [""]
- name: Carson Farmer
bio: ''
organization: "Textileio"
Expand Down Expand Up @@ -164,16 +202,6 @@
packages-submitted: [""]
packages-reviewed: [""]
packages-editor: [""]
- name: Leonardo Uieda
bio: ''
organization: "University of Liverpool, JOSS"
github_username:
github_image_id: 290082
contributor_type:
- contributor
packages-submitted: [""]
packages-reviewed: [""]
packages-editor: [""]
- name: Martin Skarzynski
bio: ''
organization: "NCI Biostatistics Branch"
Expand Down Expand Up @@ -215,16 +243,6 @@
packages-submitted: ["pandera"]
packages-reviewed: [""]
packages-editor: [""]
- name: Lindsey Heagy
bio: ''
organization: ""
github_username: lheagy
github_image_id: 6361812
contributor_type:
- contributor
packages-submitted: [""]
packages-reviewed: [""]
packages-editor: [""]
- name: Sean Gillies
bio: ''
organization: "Mapbox"
Expand All @@ -245,15 +263,6 @@
packages-submitted: [""]
packages-reviewed: ["earthpy"]
packages-editor: [""]
- name: Martin Fleischmann
bio: 'Urban Data Scientist'
organization: "University of Strathclyde"
github_username: martinfleis
github_image_id: 36797143
contributor_type:
- reviewer
packages-submitted: [""]
packages-reviewed: ["movingpandas"]
- name: Morgan Williams
bio: 'Postdoctoral Fellow, Geoscience Analytics'
organization: "CSIRO"
Expand Down
30 changes: 24 additions & 6 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
# main links
main:
- title: "Peer Review & Packages"
url: /python-packages/
url:
sub-nav:
- title: "About peer review"
icon:
url: "/about-peer-review/"
- title: "Peer review guide"
url: "https://www.pyopensci.org/peer-review-guide/"
icon: "fas fa-external-link-alt"
- title: "Python package guide"
url: "https://www.pyopensci.org/python-package-guide/"
icon: "fas fa-external-link-alt"
- title: "Our packages"
icon: "fas fa-fw fa-envelope-square"
url: "/python-packages/"
- title: "Blog"
url: /blog/
- title: "Resources"
url: /resources/
- title: "Our Community"
url: /our-community/
# - title: "Resources"
# url: /resources/
- title: "Community"
sub-nav:
- title: "Our Community"
url: "/our-community/"
- title: "Governance"
icon: "fas fa-external-link-alt"
url: "https://www.pyopensci.org/governance/"
- title: "Contact"
url: /get-involved-contact/
url: /get-involved-contact.html
24 changes: 24 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<div class="page__footer-follow">
<ul class="social-icons">
{% if site.data.ui-text[site.locale].follow_label %}
<li><strong>{{ site.data.ui-text[site.locale].follow_label }}</strong></li>
{% endif %}

{% if site.footer.links %}
{% for link in site.footer.links %}
{% if link.label and link.url %}
<li><a href="{{ link.url }}" rel="nofollow noopener noreferrer"><i class="{{ link.icon | default: 'fas fa-link' }}" aria-hidden="true"></i> {{ link.label }}</a></li>
{% endif %}
{% endfor %}
{% endif %}

{% unless site.atom_feed.hide %}
<li><a href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' | relative_url }}{% endif %}"><i class="fas fa-fw fa-rss-square" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].feed_label | default: "Feed" }}</a></li>
{% endunless %}
</ul>
</div>
pyOpenSci is a fiscally sponsored project of Community Initiatives

<div class="page__footer-copyright">&copy; {{ site.time | date: '%Y' }} {{ site.name | default: site.title }}</div>
<script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script>
<script src="/assets/js/dropdown.js"></script>
60 changes: 60 additions & 0 deletions _includes/masthead.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{% capture logo_path %}{{ site.logo }}{% endcapture %}

<div class="masthead">
<div class="masthead__inner-wrap">
<div class="masthead__menu">
<nav id="site-nav" class="nav__topbar" aria-label="Top Bar">
<!-- More accessible as a screen reader will group the title and image in the same link -->
{% unless logo_path == empty %}
<a class="site-logo" href="{{ '/' | relative_url }}">
<img src="{{ logo_path | relative_url }}" alt="Welcome to the pyOpenSci website. This is the pyOpenSci logo.">
<span class="site-title">pyOpenSci</span>
</a>
{% endunless %}

<ul class="nav__links">
{%- for alink in site.data.navigation.main -%}
{% if alink.sub-nav %}
<!-- If there is sub nav to display -->
<li class="dropdown">
<button class="dropbtn" tabindex="0" aria-expanded="false">{{ alink.title }} <i class="fas fa-caret-down"></i>
</button>
<ul class="dropdown-content">
{% for subnav in alink.sub-nav %}
<li>
<a href="{{ subnav.url }}" class="masthead__menu-item hover-underline">{{ subnav.title }}
{% if subnav.icon %} <i class="{{ subnav.icon }}"></i> {% endif %}
</a>
</li>
{% endfor %}
</ul>
</li>
{% else %}
<li>
<a href="{{ alink.url | relative_url }}" class="hover-underline">{{ alink.title }}</a>
</li>
{% endif %}
{% endfor %}
<li>

</li>
</ul>
<!--
{% if site.search == true %}
<button class="search__toggle" type="button">
<span class="visually-hidden">{{ site.data.ui-text[site.locale].search_label | default: "Toggle search" }}</span>
<i class="fas fa-search"></i>
</button>
{% endif %}
-->

<ul class="hidden-links hidden"></ul>
<!-- Burger button - span class for screen readers-->
<button class="hamburger__btn-toggle" type="button" count="1" aria-expanded="false">
<span class="visually-hidden">Toggle top navigation menu</span> <!--screen readers-->
<div class="burger__icon"></div>
</button>
</nav>
</div>
</div>
</div>
Loading