Skip to content

Commit 49ce22a

Browse files
authored
adds events to sponsored events page (#738)
1 parent d50862c commit 49ce22a

File tree

4 files changed

+43
-17
lines changed

4 files changed

+43
-17
lines changed

_data/events.json

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

_data/sponsored_events.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"2024": ["PyTexas", "PyOhio", "PyCon Africa", "PyCon South Africa", "PyCon Zimbabwe", "PyCon Nigeria", "IndabaX - Botswana", "PyCon Uganda", "PyHo - Ghana"],
3+
"2025": {
4+
"Africa": ["Django Girls - Ho", "PyCon Africa", "DjangoCon Africa", "IndabaX - Botswana", "PyCon Namibia", "PyTogo", "Zero to Hero Mentorship Program - Nigeria"],
5+
"North America": ["PyTexas Foundation", "PyOhio", "PyBeach"],
6+
"South America": ["Ubuntu Tech - Colombia", "Django Girls - Colombia"]
7+
}
8+
}

_layouts/sponsored-events.html

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,38 @@
11
{% extends 'default.html' %}
22
{% block content %}
33
<section>
4-
<h1>Upcoming Conferences</h1>
4+
<h1>Supported Events</h1>
55

6-
<p>Black Python Devs aims to partner with Python conferences around the world to increase the visibility and opportunities for Black leadership in the Python community. We understand that when you put qualified individuals on stage and at conferences it increases their value and opportunities for employment.</p>
6+
<p>Black Python Devs aims to partner with Python conferences and events around the world to increase the visibility and opportunities for Black developers and leaders in the Python community.</p>
77

8-
<p>Here are some highlighted upcoming conferences where you can find Black Python Developers involved on stage or behind the scenes</p>
8+
<p>We believe that sponsorships does the following:</p>
9+
<ul>
10+
<li>👫 - raises awareness amongst our community to attend events.</li>
11+
<li>🌐 - supports Python events that are accessible to black communities</li>
912

10-
{% for conference in conferences %}
11-
{% include '_includes/conferences.html' %}
12-
{% endfor %}
13+
</ul>
14+
<p>Here is a look at events this year that we've supported:</p>
15+
</section>
1316

14-
<h2>Regular Meetups</h2>
17+
<section>
18+
<h2>Events Sponsored in {{year}}</h2>
19+
<section class="grid">
20+
{% for segment in data[year] | sort %}
21+
<article>
22+
<h3>{{segment}}</h3>
23+
{% for event in data[year][segment] | sort %}
24+
<p>{{event}}</p>
25+
{% endfor %}
26+
</article>
27+
{% endfor %}
28+
</section>
1529

16-
<p>Join us every Friday for a cup of coffee and a chance to code with fellow Python enthusiasts. Our community is open to all levels of experience, from beginners to experts.</p>
30+
<p>Interested in Black Python Devs supporting your event. Review our <a href="https://github.com/BlackPythonDevs/blackpythondevs/blob/main/policies/event-grants.md#22-budget-considerations">Grant Criteria</a> and email your prospectus to <a href="mailto:sponsorships@blackpythondevs.com">sponsorships@blackpythondevs.com</a></p>
31+
</section>
32+
33+
<section>
34+
<h2>Regular Meetups</h2>
1735

18-
<p>We'll be discussing the latest trends in Python development, sharing tips and tricks, and working on projects together. Whether you're looking to learn something new or just want to hang out with like-minded people, this is the perfect opportunity to do so. We look forward to seeing you there!</p>
36+
<p>Join us every Friday for a cup of coffee and a chance to code with fellow Python enthusiasts. Our community is open to all levels of experience, sharing tips and tricks, and working on projects together. Whether you're looking to learn something new or just want to hang out with like-minded people, this is the perfect opportunity to do so. We look forward to seeing you there!</p>
1937
</section>
20-
{% endblock %}
38+
{%endblock %}

app.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
import yaml
2-
import pathlib
1+
import datetime
32
import json
3+
import pathlib
4+
5+
import yaml
6+
47
from render_engine import Site, Page, Collection, Blog
58
from render_engine_markdown import MarkdownPageParser
69

@@ -54,6 +57,8 @@ class Support(Page):
5457
class SponsoredEvents(Page):
5558
template = "sponsored-events.html"
5659
slug = "sponsored-events"
60+
data = json.loads(pathlib.Path("_data/sponsored_events.json").read_text())
61+
template_vars = {"year": str(datetime.date.today().year)}
5762

5863

5964
@app.collection

0 commit comments

Comments
 (0)