Skip to content

Commit 0dcbd04

Browse files
committed
Refactor navigation menu: remove Home/Community, rename Blog, combine Events and Support
1 parent d3e3cbb commit 0dcbd04

File tree

5 files changed

+66
-63
lines changed

5 files changed

+66
-63
lines changed

_layouts/about.html

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,26 @@ <h3>BPD Leadership Council</h3>
100100
{% endfor %}
101101
</div>
102102
</article>
103-
</section>
103+
104+
<section>
105+
<h2>Connect With Us</h2>
106+
<p>We understand the importance of communication and collaboration. That's why we've created spaces where you can connect with us and other community members.</p>
107+
108+
<h3>Discord <i class="fab fa-discord"></i></h3>
109+
<p>Join our Discord server where we discuss everything from Python basics to advanced topics. It's a great place to ask questions, share your projects, or just chat with other developers. We've recently opened our doors even wider, so feel free to join us using this <a href="https://discord.gg/XUc3tFqCT3">invite link</a>.</p>
110+
111+
<h3>Twitter <i class="fab fa-x-twitter"></i></h3>
112+
<p>Follow us on <a href="https://x.com/blackpythondevs">X</a> for the latest updates, news, and insights from our community.</p>
113+
114+
<h3>Instagram <i class="fab fa-instagram"></i></h3>
115+
<p>Follow, Like, and Share us on <a href="https://www.instagram.com/blackpythondevs/">Instagram</a> for updates, news, fun videos, and insights from the community.</p>
116+
117+
<h3>LinkedIn <i class="fab fa-linkedin"></i></h3>
118+
<p>Follow our <a href="https://www.linkedin.com/company/black-python-devs">LinkedIn Page</a> to learn more about all the things happening around the community!</p>
119+
<p>Also, join our <a href="https://www.linkedin.com/groups/14336241/">LinkedIn Group</a> to connect with professionals in the field, participate in relevant discussions, and stay updated with job opportunities and industry trends.</p>
120+
121+
<h3>Email <i class="far fa-envelope"></i></h3>
122+
<p>Contact us via email at <a href="mailto:[email protected]">[email protected]</a> for inquiries, collaborations, or any other questions.</p>
123+
</section>
104124
{% endblock %}
125+

_layouts/support.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,28 @@
33
{% block content %}
44
{{content}}
55
{% include "_includes/support_widget.html" %}
6+
7+
<section>
8+
<h2>Partnerships</h2>
9+
10+
<p>We're happy to share with you our proud sponsors who offer their products at discounted rates and a portion of proceeds go to support Black Python Devs!</p>
11+
12+
{% for partner in partnerships %}
13+
<article>
14+
<div class="grid">
15+
<div>
16+
<img src="{{partner['logo']}}" alt="{{partner['name']}} Logo" style="max-height: 14em" />
17+
</div>
18+
<div>
19+
<h3><a href="{{partner['url']}}">{{ partner['name'] }}</a></h3>
20+
<p>{{ partner['description'] }}</p>
21+
<a href="{{ partner['url'] }}">Learn more</a>
22+
</div>
23+
</div>
24+
</article>
25+
{% endfor %}
26+
</section>
27+
628
{% include "_includes/foundational_supporters.html" %}
729
{% include "_includes/pitch_deck.html" %}
830
{% endblock %}

app.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,9 @@
66
from render_engine_markdown import MarkdownPageParser
77

88
navigation = [
9-
{"text": "Home", "url": "/index.html", "fa": "fa fa-home fa-fw"},
10-
{"text": "Blog", "url": "/blog/blog1.html", "fa": "fa fa-newspaper fa-fw"},
9+
{"text": "News", "url": "/blog/blog1.html", "fa": "fa fa-newspaper fa-fw"},
1110
{"text": "About Us", "url": "/about.html", "fa": "fa fa-info-circle fa-fw"},
12-
{"text": "BPD Events", "url": "/bpd-events", "fa": "fa fa-calendar fa-fw"},
13-
{
14-
"text": "Sponsored Events",
15-
"url": "/sponsored-events.html",
16-
"fa": "fa fa-handshake fa-fw",
17-
},
18-
{"text": "Community", "url": "/community.html", "fa": "fa fa-users fa-fw"},
19-
{"text": "Discounts", "url": "/partnerships.html", "fa": "fa-regular fa-handshake"},
11+
{"text": "Events", "url": "/events.html", "fa": "fa fa-calendar fa-fw"},
2012
{
2113
"text": "Support Us",
2214
"url": "/support.html",
@@ -54,6 +46,9 @@ class Support(Page):
5446
content_path = "support.md"
5547
template = "support.html"
5648
data = json.loads(pathlib.Path("_data/foundational_supporters.json").read_text())
49+
template_vars = {
50+
"partnerships": json.loads(pathlib.Path("_data/partnerships.json").read_text())
51+
}
5752

5853

5954
@app.page

pages/community.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

pages/events.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
layout: default
3+
lang: en
4+
title: Events
5+
---
6+
7+
# Events
8+
9+
Stay connected with what's happening in the Black Python Devs community and beyond.
10+
11+
## [BPD Events](/bpd-events)
12+
13+
Check out our own community events, meetups, and gatherings.
14+
15+
## [Sponsored Events](/sponsored-events.html)
16+
17+
Discover events from our sponsors and partners that support our community.

0 commit comments

Comments
 (0)