Skip to content

Commit

Permalink
Merge pull request #15 from NeurodataWithoutBorders/improve-menu-orga…
Browse files Browse the repository at this point in the history
…nization

Refactor navigation structure and update footer links for improved organization
  • Loading branch information
bendichter authored Jan 15, 2025
2 parents dd95a2e + 79dc9d0 commit 1ac7723
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 69 deletions.
144 changes: 80 additions & 64 deletions config/_default/menus.yaml
Original file line number Diff line number Diff line change
@@ -1,99 +1,115 @@
# Main
# Main Navigation
main:
- name: "About"
# Get Started
- name: "Get Started"
weight: 1
hasChildren: true
- name: "About NWB"
- name: "Overview"
weight: 1
url: "about-us/"
parent: About
- name: "The Software Ecosystem"
parent: "Get Started"
- name: "Converting Data to NWB"
weight: 2
url: "nwb-software/"
parent: About
- name: "Team"
url: "converting-data-to-nwb/"
parent: "Get Started"
- name: "Documentation"
weight: 3
url: "team/"
parent: About
- name: "Publications"
weight: 4
url: "publications/"
parent: About
- name: "Contact Us"
weight: 5
url: "contact-us/"
parent: About
url: "https://nwb-overview.readthedocs.io"
parent: "Get Started"

- name: "Community"
# Software & Tools
- name: "Software & Tools"
weight: 2
hasChildren: true
- name: "News"
- name: "NWB Software Ecosystem"
weight: 1
url: "https://us3.campaign-archive.com/home/?u=eacaccc485a4e5f36034bbdbd&id=a9718ab27f"
parent: Community
url: "nwb-software/"
parent: "Software & Tools"

# Community
- name: "Community"
weight: 3
hasChildren: true
- name: "News & Updates"
weight: 1
url: "news/"
parent: "Community"
- name: "Events"
weight: 2
url: "https://neurodatawithoutborders.github.io/nwb_hackathons/"
parent: Community
- name: "NWB Enhancement Proposals"
url: "events/"
parent: "Community"
- name: "Enhancement Proposals"
weight: 3
url: "https://github.com/nwb-extensions/nwbep-review/blob/main/README.md"
parent: Community
- name: "Converting Data to NWB"
url: "https://github.com/nwb-extensions/nwbep-review/"
parent: "Community"
- name: "Working Groups"
weight: 4
url: "converting-data-to-nwb/"
parent: Community
- name: "Grants and Projects"
url: "working-groups/"
parent: "Community"
- name: "Team"
weight: 5
url: "team/"
parent: "Community"

# Resources
- name: "Resources"
weight: 4
hasChildren: true
- name: "Publications"
weight: 1
url: "publications/"
parent: "Resources"
- name: "Grants & Projects"
weight: 2
url: "grants-and-projects/"
parent: Community
- name: "Working Groups"
weight: 6
url: "working-groups/"
parent: Community
- name: "Using NWB"
weight: 3
url: "https://nwb-overview.readthedocs.io"
parent: "Resources"
- name: "Policies"
weight: 4
weight: 3
url: "policies/"
parent: "Resources"

# Contact
- name: "Contact"
weight: 5
url: "contact-us/"

# Footer
### About
about:
- name: "About NWB"
# Footer Menus
quick_links:
- name: "Get Started"
weight: 1
url: "/about-us"
- name: "The Software Ecosystem"
- name: "Documentation"
weight: 2
url: "https://nwb-overview.readthedocs.io"
- name: "Software"
weight: 3
url: "/nwb-software"
- name: "Team"
weight: 3
url: "/team"
- name: "Publications"
weight: 4
url: "/publications"
- name: "Contact Us"
weight: 5
url: "/contact-us"
url: "/team"

### Community
community:
- name: "News"
community_links:
- name: "News & Updates"
weight: 1
url: "/news"
- name: "Events"
weight: 2
url: "/event-cards"
- name: "NWB Enhancement Proposals"
url: "/events"
- name: "Working Groups"
weight: 3
url: "https://github.com/nwb-extensions/nwbep-review/blob/main/README.md"
- name: "Converting Data to NWB"
url: "/working-groups"
- name: "Contact Us"
weight: 4
url: "/converting-data-to-nwb"
- name: "Grants and Projects"
weight: 5
url: "/contact-us"

resources:
- name: "Publications"
weight: 1
url: "/publications"
- name: "Grants & Projects"
weight: 2
url: "/grants-and-projects"
- name: "Working Groups"
weight: 6
url: "/working-groups"
- name: "Policies"
weight: 3
url: "/policies"
19 changes: 14 additions & 5 deletions layouts/partials/shared/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
</div>
<div class="container-lg footer-padi z-3">
<div class="row g-4 justify-content-between">

<div class="col-10 col-sm-5 col-md-3">
<div class="d-flex flex-column row-gap-4">
{{ with site.Params.footer_logo }}
Expand All @@ -25,9 +24,9 @@

<div class="col-10 col-sm-5 col-md-3">
<div class="d-flex flex-column row-gap-4">
<strong class="inter-500 text-18 dark-50">About</strong>
<strong class="inter-500 text-18 dark-50">Quick Links</strong>
<ul class="list-unstyled d-flex flex-column row-gap-3">
{{ range site.Menus.about }}
{{ range site.Menus.quick_links }}
<li><a href="{{ .URL }}" class="inter-400 nav-link underline-hover animate dark-300 text-16">{{ .Name | markdownify }}</a></li>
{{ end }}
</ul>
Expand All @@ -38,13 +37,23 @@
<div class="d-flex flex-column row-gap-4">
<strong class="inter-500 text-18 dark-50">Community</strong>
<ul class="list-unstyled d-flex flex-column row-gap-3">
{{ range site.Menus.community }}
{{ range site.Menus.community_links }}
<li><a href="{{ .URL }}" class="inter-400 nav-link underline-hover animate dark-300 text-16">{{ .Name | markdownify }}</a></li>
{{ end }}
</ul>
</div>
</div>

<div class="col-10 col-sm-5 col-md-3">
<div class="d-flex flex-column row-gap-4">
<strong class="inter-500 text-18 dark-50">Resources</strong>
<ul class="list-unstyled d-flex flex-column row-gap-3">
{{ range site.Menus.resources }}
<li><a href="{{ .URL }}" class="inter-400 nav-link underline-hover animate dark-300 text-16">{{ .Name | markdownify }}</a></li>
{{ end }}
</ul>
</div>
</div>
</div>
</div>
</div>
</div>

0 comments on commit 1ac7723

Please sign in to comment.