Skip to content

Commit 1ac7723

Browse files
authored
Merge pull request #15 from NeurodataWithoutBorders/improve-menu-organization
Refactor navigation structure and update footer links for improved organization
2 parents dd95a2e + 79dc9d0 commit 1ac7723

File tree

2 files changed

+94
-69
lines changed

2 files changed

+94
-69
lines changed

config/_default/menus.yaml

Lines changed: 80 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,115 @@
1-
# Main
1+
# Main Navigation
22
main:
3-
- name: "About"
3+
# Get Started
4+
- name: "Get Started"
45
weight: 1
56
hasChildren: true
6-
- name: "About NWB"
7+
- name: "Overview"
78
weight: 1
89
url: "about-us/"
9-
parent: About
10-
- name: "The Software Ecosystem"
10+
parent: "Get Started"
11+
- name: "Converting Data to NWB"
1112
weight: 2
12-
url: "nwb-software/"
13-
parent: About
14-
- name: "Team"
13+
url: "converting-data-to-nwb/"
14+
parent: "Get Started"
15+
- name: "Documentation"
1516
weight: 3
16-
url: "team/"
17-
parent: About
18-
- name: "Publications"
19-
weight: 4
20-
url: "publications/"
21-
parent: About
22-
- name: "Contact Us"
23-
weight: 5
24-
url: "contact-us/"
25-
parent: About
17+
url: "https://nwb-overview.readthedocs.io"
18+
parent: "Get Started"
2619

27-
- name: "Community"
20+
# Software & Tools
21+
- name: "Software & Tools"
2822
weight: 2
2923
hasChildren: true
30-
- name: "News"
24+
- name: "NWB Software Ecosystem"
3125
weight: 1
32-
url: "https://us3.campaign-archive.com/home/?u=eacaccc485a4e5f36034bbdbd&id=a9718ab27f"
33-
parent: Community
26+
url: "nwb-software/"
27+
parent: "Software & Tools"
28+
29+
# Community
30+
- name: "Community"
31+
weight: 3
32+
hasChildren: true
33+
- name: "News & Updates"
34+
weight: 1
35+
url: "news/"
36+
parent: "Community"
3437
- name: "Events"
3538
weight: 2
36-
url: "https://neurodatawithoutborders.github.io/nwb_hackathons/"
37-
parent: Community
38-
- name: "NWB Enhancement Proposals"
39+
url: "events/"
40+
parent: "Community"
41+
- name: "Enhancement Proposals"
3942
weight: 3
40-
url: "https://github.com/nwb-extensions/nwbep-review/blob/main/README.md"
41-
parent: Community
42-
- name: "Converting Data to NWB"
43+
url: "https://github.com/nwb-extensions/nwbep-review/"
44+
parent: "Community"
45+
- name: "Working Groups"
4346
weight: 4
44-
url: "converting-data-to-nwb/"
45-
parent: Community
46-
- name: "Grants and Projects"
47+
url: "working-groups/"
48+
parent: "Community"
49+
- name: "Team"
4750
weight: 5
51+
url: "team/"
52+
parent: "Community"
53+
54+
# Resources
55+
- name: "Resources"
56+
weight: 4
57+
hasChildren: true
58+
- name: "Publications"
59+
weight: 1
60+
url: "publications/"
61+
parent: "Resources"
62+
- name: "Grants & Projects"
63+
weight: 2
4864
url: "grants-and-projects/"
49-
parent: Community
50-
- name: "Working Groups"
51-
weight: 6
52-
url: "working-groups/"
53-
parent: Community
54-
- name: "Using NWB"
55-
weight: 3
56-
url: "https://nwb-overview.readthedocs.io"
65+
parent: "Resources"
5766
- name: "Policies"
58-
weight: 4
67+
weight: 3
5968
url: "policies/"
69+
parent: "Resources"
70+
71+
# Contact
72+
- name: "Contact"
73+
weight: 5
74+
url: "contact-us/"
6075

6176
# Footer
62-
### About
63-
about:
64-
- name: "About NWB"
77+
# Footer Menus
78+
quick_links:
79+
- name: "Get Started"
6580
weight: 1
6681
url: "/about-us"
67-
- name: "The Software Ecosystem"
82+
- name: "Documentation"
6883
weight: 2
84+
url: "https://nwb-overview.readthedocs.io"
85+
- name: "Software"
86+
weight: 3
6987
url: "/nwb-software"
7088
- name: "Team"
71-
weight: 3
72-
url: "/team"
73-
- name: "Publications"
7489
weight: 4
75-
url: "/publications"
76-
- name: "Contact Us"
77-
weight: 5
78-
url: "/contact-us"
90+
url: "/team"
7991

80-
### Community
81-
community:
82-
- name: "News"
92+
community_links:
93+
- name: "News & Updates"
8394
weight: 1
8495
url: "/news"
8596
- name: "Events"
8697
weight: 2
87-
url: "/event-cards"
88-
- name: "NWB Enhancement Proposals"
98+
url: "/events"
99+
- name: "Working Groups"
89100
weight: 3
90-
url: "https://github.com/nwb-extensions/nwbep-review/blob/main/README.md"
91-
- name: "Converting Data to NWB"
101+
url: "/working-groups"
102+
- name: "Contact Us"
92103
weight: 4
93-
url: "/converting-data-to-nwb"
94-
- name: "Grants and Projects"
95-
weight: 5
104+
url: "/contact-us"
105+
106+
resources:
107+
- name: "Publications"
108+
weight: 1
109+
url: "/publications"
110+
- name: "Grants & Projects"
111+
weight: 2
96112
url: "/grants-and-projects"
97-
- name: "Working Groups"
98-
weight: 6
99-
url: "/working-groups"
113+
- name: "Policies"
114+
weight: 3
115+
url: "/policies"

layouts/partials/shared/footer.html

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
</div>
1010
<div class="container-lg footer-padi z-3">
1111
<div class="row g-4 justify-content-between">
12-
1312
<div class="col-10 col-sm-5 col-md-3">
1413
<div class="d-flex flex-column row-gap-4">
1514
{{ with site.Params.footer_logo }}
@@ -25,9 +24,9 @@
2524

2625
<div class="col-10 col-sm-5 col-md-3">
2726
<div class="d-flex flex-column row-gap-4">
28-
<strong class="inter-500 text-18 dark-50">About</strong>
27+
<strong class="inter-500 text-18 dark-50">Quick Links</strong>
2928
<ul class="list-unstyled d-flex flex-column row-gap-3">
30-
{{ range site.Menus.about }}
29+
{{ range site.Menus.quick_links }}
3130
<li><a href="{{ .URL }}" class="inter-400 nav-link underline-hover animate dark-300 text-16">{{ .Name | markdownify }}</a></li>
3231
{{ end }}
3332
</ul>
@@ -38,13 +37,23 @@
3837
<div class="d-flex flex-column row-gap-4">
3938
<strong class="inter-500 text-18 dark-50">Community</strong>
4039
<ul class="list-unstyled d-flex flex-column row-gap-3">
41-
{{ range site.Menus.community }}
40+
{{ range site.Menus.community_links }}
4241
<li><a href="{{ .URL }}" class="inter-400 nav-link underline-hover animate dark-300 text-16">{{ .Name | markdownify }}</a></li>
4342
{{ end }}
4443
</ul>
4544
</div>
4645
</div>
4746

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

0 commit comments

Comments
 (0)