Skip to content

Commit 5394306

Browse files
author
Kevin Paul
committed
Add fixed navbar and footer menu
1 parent 0274c34 commit 5394306

File tree

3 files changed

+36
-75
lines changed

3 files changed

+36
-75
lines changed
File renamed without changes.

portal/_templates/footer-menu.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{% set ext_icon = '<i class="fas fa-external-link-alt"></i>' %}
2+
<div class="container-fluid footer-menu pt-4">
3+
<div class="container">
4+
<div class="row justify-content-center">
5+
<div class="col-9 col-sm-4 col-md-4 col-lg-3 footer-menu-col">
6+
<h1>{{ _("About") }}</h1>
7+
<ul class="list-unstyled">
8+
<li><a href="https://projectpythia.org/about.html">{{ _("About Project Pythia") }}</a></li>
9+
<li><a href="https://foundations.projectpythia.org/preamble/how-to-use.html">{{ _("How to use Pythia Foundations") }}</a></li>
10+
<li><a href="https://projectpythia.org/#the-project-pythia-team">{{ _("The Project Team") }}</a></li>
11+
</ul>
12+
</div>
13+
<div class="col-9 col-sm-4 col-md-4 col-lg-3 footer-menu-col">
14+
<h1>{{ _("Give Feedback") }}</h1>
15+
<ul class="list-unstyled">
16+
<li><a href="mailto:[email protected]">{{ _("Email us!") }}</a></li>
17+
<li><a href="https://github.com/ProjectPythia/projectpythia.github.io/discussions">{{ _("Project Pythia Discussions") }}</a></li>
18+
<li><a href="https://github.com/ProjectPythia/pythia-foundations/discussions">{{ _("Pythia Foundations Discussions") }}</a></li>
19+
</ul>
20+
</div>
21+
<div class="col-9 col-sm-4 col-md-4 col-lg-3 footer-menu-col">
22+
<h1>{{ _("Contribute") }}</h1>
23+
<ul class="list-unstyled">
24+
<li><a href="https://projectpythia.org/contributing.html">{{ _("How to contribute to Project Pythia") }}</a></li>
25+
<li><a href="https://foundations.projectpythia.org/appendix/how-to-contribute.html">{{ _("How to contribute to Pythia Foundations") }}</a></li>
26+
<li><a href="https://projectpythia.org/code_of_conduct.html">{{ _("Our code of conduct") }}</a></li>
27+
<li><a href="https://projectpythia.org/#weekly-working-group-meetings">{{ _("Join our weekly meetings") }}</a></li>
28+
<li><a href="https://github.com/ProjectPythia">{{ _("Join us on GitHub") }}</a></li>
29+
</ul>
30+
</div>
31+
</div>
32+
</div>
33+
</div>

portal/conf.py

Lines changed: 3 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -85,94 +85,22 @@
8585

8686
# HTML Theme-specific Options
8787
html_theme_options = {
88+
'google_analytics_id': 'G-T9KGMX7VHZ',
8889
'github_url': 'https://github.com/ProjectPythia',
8990
'twitter_url': 'https://twitter.com/project_pythia',
90-
'google_analytics_id': 'G-T9KGMX7VHZ',
91-
'logo_only': True,
9291
'logo_link': 'https://projectpythia.org',
9392
'navbar_links': [
94-
{'name': 'Home', 'url': '/'},
93+
{'name': 'Home', 'url': 'https://projectpythia.org'},
9594
{'name': 'Foundations', 'url': 'https://foundations.projectpythia.org'},
9695
{'name': 'Gallery', 'url': 'https://projectpythia.org/gallery.html'},
97-
{'name': 'Community', 'url': 'https://projectpythia.org/index.html#join-us'},
96+
{'name': 'Community', 'url': 'https://projectpythia.org/#join-us'},
9897
],
99-
'navbar_align': 'left',
10098
'page_layouts': {'index': 'page-banner.html', 'gallery': 'page-standalone.html'},
101-
'footer_menu': [
102-
{
103-
'title': 'Column A',
104-
'class': 'col-8 col-sm-4 col-md-3 col-lg-2',
105-
'items': [
106-
{
107-
'name': 'Link 1',
108-
'url': 'https://google.com',
109-
},
110-
{
111-
'name': 'Link 2',
112-
'url': 'https://google.com',
113-
},
114-
{
115-
'name': 'Link 3',
116-
'url': 'https://google.com',
117-
},
118-
{
119-
'name': 'Link 4',
120-
'url': 'https://google.com',
121-
},
122-
],
123-
},
124-
{
125-
'title': 'Column B',
126-
'class': 'col-8 col-sm-4 col-md-3 col-lg-2',
127-
'items': [
128-
{
129-
'name': 'Link 1',
130-
'url': 'https://google.com',
131-
},
132-
{
133-
'name': 'Link 2',
134-
'url': 'https://google.com',
135-
},
136-
{
137-
'name': 'Link 3',
138-
'url': 'https://google.com',
139-
},
140-
{
141-
'name': 'Link 4',
142-
'url': 'https://google.com',
143-
},
144-
],
145-
},
146-
{
147-
'title': 'Column C',
148-
'class': 'col-8 col-sm-4 col-md-3 col-lg-2',
149-
'items': [
150-
{'name': 'Just some text!'},
151-
{
152-
'name': (
153-
'Another paragraph of text. This has '
154-
'a lot more information in it than '
155-
'the previous paragraph.'
156-
)
157-
},
158-
{
159-
'name': 'And finally a link',
160-
'url': 'https://google.com',
161-
},
162-
],
163-
},
164-
],
16599
'footer_logos': {
166100
'NCAR': '_static/images/logos/NCAR-contemp-logo-blue.svg',
167101
'Unidata': '_static/images/logos/Unidata_logo_horizontal_1200x300.svg',
168102
'UAlbany': '_static/images/logos/UAlbany-A2-logo-purple-gold.svg',
169103
},
170-
'footer_items': [
171-
'footer-logos.html',
172-
'footer-menu.html',
173-
'footer-info.html',
174-
'footer-nsf.html',
175-
],
176104
'extra_navbar': ('Theme by <a href="https://projectpythia.org">Project Pythia</a>'),
177105
}
178106

0 commit comments

Comments
 (0)