Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _layouts/_includes/foundational_supporters.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ <h2>Foundational Supporters</h2>
<p>Black Python Devs operates primarily on support from individuals. It is those supporters that serve as the foundation for what we do.</p>
<p>We would like to recognize our supporters who donate at least $200 each year.</p>

{% for data_year in data %} {% if data_year == year %}
{% for data_year in foundational_supporters %} {% if data_year == year %}
<details name="{{data_year}}" open>
{% else %}
<details name="{{data_year}}">
{% endif %}
<summary>{{data_year}}</summary>
<div class="grid">
{% for data_lists in data[data_year] | sort | slice(3) %}
{% for data_lists in foundational_supporters[data_year] | sort | slice(3) %}
<section class="">
<div>
<ul>
Expand Down
17 changes: 17 additions & 0 deletions _layouts/_includes/partnerships.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<section>
<h2 id="partnerships">Partnerships</h2>
<p>Black Python Devs has partnered with the following organizations to offer discounts and benefits to our community.</p>
<div class="grid">
{% for partner in partnerships %}
<article>
<header>
<a href="{{partner.url}}">
<img src="{{partner.logo}}" alt="{{partner.name}} logo" style="max-height: 80px; object-fit: contain" />
</a>
</header>
<h3><a href="{{partner.url}}">{{partner.name}}</a></h3>
<p>{{partner.description}}</p>
</article>
{% endfor %}
</div>
</section>
Empty file removed _layouts/partnerships.html
Empty file.
3 changes: 3 additions & 0 deletions _layouts/support.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
{% block content %}
{{content}}
{% include "_includes/support_widget.html" %}
{% set partnerships=data.partnerships %}
{% include "_includes/partnerships.html" %}
{% set foundational_supporters=data.foundational_supporters %}
{% include "_includes/foundational_supporters.html" %}
{% include "_includes/pitch_deck.html" %}
{% endblock %}
14 changes: 6 additions & 8 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
navigation = [
{"text": "News", "url": "/blog/blog1.html", "fa": "fa fa-newspaper fa-fw"},
{"text": "About Us", "url": "/about.html", "fa": "fa fa-info-circle fa-fw"},
{"text": "Discounts", "url": "/partnerships.html", "fa": "fa-regular fa-handshake"},
{"text": "Events", "fa": "fa fa-calendar fa-fw", "url": "/events.html"},
{
"text": "Support Us",
Expand Down Expand Up @@ -46,7 +45,12 @@ class Support(Page):
Parser = MarkdownPageParser
content_path = "support.md"
template = "support.html"
data = json.loads(pathlib.Path("_data/foundational_supporters.json").read_text())
data = {
"foundational_supporters": json.loads(
pathlib.Path("_data/foundational_supporters.json").read_text()
),
"partnerships": json.loads(pathlib.Path("_data/partnerships.json").read_text()),
}


@app.page
Expand All @@ -64,12 +68,6 @@ class BPDEvents(Collection):
routes = ["./-events"]


@app.page
class Partnerships(Page):
template = "partnerships.html"
data = json.loads(pathlib.Path("_data/partnerships.json").read_text())


@app.collection
class Pages(Collection):
Parser = MarkdownPageParser
Expand Down
2 changes: 1 addition & 1 deletion support.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ title: Support

Black Python Devs is a Non-Profit, fiscally hosted under the [GNOME Foundation](https://foundation.gnome.org/). The GNOME Foundation takes a small percentage for administration costs and support but at least 90% of proceeds goes directly to Black Python Devs Fund to support operational costs and supporting community events in the communities of Black Python Devs.

Looking for member discounts? View our [Partnerships](/partnerships.html) page.
Looking for member discounts? View our [Partnerships](#partnerships).