From 4273422b4381577105434d39f7c24d5bad7ba45d Mon Sep 17 00:00:00 2001 From: Jay Miller Date: Thu, 21 Aug 2025 20:45:12 -0400 Subject: [PATCH] adds events to sponsored events page --- _data/events.json | 5 ----- _data/sponsored_events.json | 8 +++++++ _layouts/sponsored-events.html | 38 +++++++++++++++++++++++++--------- app.py | 9 ++++++-- 4 files changed, 43 insertions(+), 17 deletions(-) delete mode 100644 _data/events.json create mode 100644 _data/sponsored_events.json diff --git a/_data/events.json b/_data/events.json deleted file mode 100644 index 6643419e..00000000 --- a/_data/events.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "meetups": [], - "conferences": [], - "partners": [] -} diff --git a/_data/sponsored_events.json b/_data/sponsored_events.json new file mode 100644 index 00000000..c45f8668 --- /dev/null +++ b/_data/sponsored_events.json @@ -0,0 +1,8 @@ +{ + "2024": ["PyTexas", "PyOhio", "PyCon Africa", "PyCon South Africa", "PyCon Zimbabwe", "PyCon Nigeria", "IndabaX - Botswana", "PyCon Uganda", "PyHo - Ghana"], + "2025": { + "Africa": ["Django Girls - Ho", "PyCon Africa", "DjangoCon Africa", "IndabaX - Botswana", "PyCon Namibia", "PyTogo", "Zero to Hero Mentorship Program - Nigeria"], + "North America": ["PyTexas Foundation", "PyOhio", "PyBeach"], + "South America": ["Ubuntu Tech - Colombia", "Django Girls - Colombia"] + } +} diff --git a/_layouts/sponsored-events.html b/_layouts/sponsored-events.html index 50a3c1d3..dd00e857 100644 --- a/_layouts/sponsored-events.html +++ b/_layouts/sponsored-events.html @@ -1,20 +1,38 @@ {% extends 'default.html' %} {% block content %}
-

Upcoming Conferences

+

Supported Events

-

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.

+

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.

-

Here are some highlighted upcoming conferences where you can find Black Python Developers involved on stage or behind the scenes

+

We believe that sponsorships does the following:

+ +

Here is a look at events this year that we've supported:

+
-

Regular Meetups

+
+

Events Sponsored in {{year}}

+
+ {% for segment in data[year] | sort %} +
+

{{segment}}

+ {% for event in data[year][segment] | sort %} +

{{event}}

+ {% endfor %} +
+ {% endfor %} +
-

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.

+

Interested in Black Python Devs supporting your event. Review our Grant Criteria and email your prospectus to sponsorships@blackpythondevs.com

+
+ +
+

Regular Meetups

-

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!

+

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!

-{% endblock %} +{%endblock %} diff --git a/app.py b/app.py index e995ac70..acb54755 100644 --- a/app.py +++ b/app.py @@ -1,6 +1,9 @@ -import yaml -import pathlib +import datetime import json +import pathlib + +import yaml + from render_engine import Site, Page, Collection, Blog from render_engine_markdown import MarkdownPageParser @@ -54,6 +57,8 @@ class Support(Page): class SponsoredEvents(Page): template = "sponsored-events.html" slug = "sponsored-events" + data = json.loads(pathlib.Path("_data/sponsored_events.json").read_text()) + template_vars = {"year": str(datetime.date.today().year)} @app.collection