Skip to content

Commit 50aee34

Browse files
feat: add psf sponsor post (#303)
* feat: add psf sponsor post * fix: change image file * chore: add image post * chore: change author name * feat: render name withouth link if sponsors * add sponsor page and reference correctly from mdx * remove unused networks * chore: change post's date --------- Co-authored-by: Marco Richetta <[email protected]>
1 parent d6a138a commit 50aee34

File tree

7 files changed

+44
-388
lines changed

7 files changed

+44
-388
lines changed
1.91 MB
Loading

src/content.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ const authorsCollection = defineCollection({
2020
meta_title: z.string().optional(),
2121
image: z.string().optional(),
2222
description: z.string().optional(),
23+
sponsor: z.boolean().optional(),
24+
company: z.string().optional(),
2325
social: z
2426
.object({
2527
bluesky: z.string().url().optional(),
@@ -79,7 +81,6 @@ const pagesCollection = defineCollection({
7981
}),
8082
});
8183

82-
8384
// Export collections
8485
export const collections = {
8586
posts: postsCollection,
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Marie Nordin
3+
meta_title: "Marie Nordin"
4+
sponsor: true
5+
company: "PSF"
6+
---
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "Python is for everyone"
3+
meta_title: "Python is for everyone"
4+
description: "The Python Software Foundation (PSF) is proud to support PyLadiesCon 2025 through our Grants Program."
5+
date: 2025-11-28T05:00:00Z
6+
image: "/images/posts/2025-psf-sponsor.png"
7+
categories: ["Blog Post",]
8+
authors: ["Marie Nordin"]
9+
tags: ["python", "community", "conference", "pyladies", "psf"]
10+
draft: false
11+
---
12+
13+
The [Python Software Foundation](http://python.org/psf) (PSF) is proud to support PyLadiesCon 2025 through our Grants Program. We truly admire the dedication and passion of the organizers, speakers, and volunteers to put on this virtual conference with a mission to empower, educate, and foster diversity within the Python community\! PyLadies, the organization behind PyLadiesCon, is a [Fiscal Sponsoree of the PSF](https://www.python.org/psf/fiscal-sponsorees/). This means the PSF provides 501(c)(3) tax-exempt status to Pyladies and manages back office work like cash flow, accounting, budgeting, insurance, and contract/legal support, as well as access to nonprofit discounts.
14+
15+
The PSF is the charitable organization behind Python, dedicated to advancing, supporting, and protecting the Python programming language and the diverse community that sustains it. That mission and cause are more than just words we believe in. Our [tiny but mighty team](https://www.python.org/psf/records/staff/) works hard to deliver the projects and services that allow Python to be the thriving, independent, community-driven language it is today.
16+
17+
Some of what the PSF does includes producing [PyCon US](https://us.pycon.org), hosting the [Python Package Index](http://pypi.org) (PyPI), [supporting](https://www.python.org/psf/grants/) [5 Developers-in-Residence](https://www.python.org/psf/developersinresidence/)[,](https://www.python.org/psf/grants/) [maintaining critical community infrastructure](https://www.python.org/psf/about/), and much more\!
18+
19+
Both PyLadies and the PSF need our community's support to keep our work going, our community thriving, and the Python programming language growing and evolving. The PSF welcomes you to join our Python is for Everyone 2025 end-of-year fundraiser and membership drive campaign by visiting [donate.python.org](http://donate.python.org) to contribute and become a PSF Supporting Member. We also encourage you to donate directly to PyLadies through the [PyLadies donation page](https://psfmember.org/civicrm/contribute/transact/?reset=1&id=6). Lastly, if your employer uses Python, we encourage you to check if they are a [sponsor of the PSF](https://www.python.org/psf/sponsors/). If not, reach out to your organization's internal decision-makers and impress on them just how important it is for us to power the future of Python together, and send them our [sponsor prospectus](https://s3.dualstack.us-east-2.amazonaws.com/pythondotorg-assets/media/files/psf_sponsor_prospectus_25-26_final_compressed.pdf).
20+
21+
Python is for everyone– thanks to you\!

src/layouts/PostSingle.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ const { title, description, authors, categories, image, date, tags } =
3333
.includes(slugify(author.data.title))
3434
)
3535
.map((author) => (
36+
author.data.sponsor ? (
37+
<span>{author.data.title} @{author.data.company}</span>
38+
) : (
3639
<a
3740
href={`/authors/${slugify(author.id)}`}
3841
class="flex items-center hover:text-primary font-medium"
@@ -48,6 +51,7 @@ const { title, description, authors, categories, image, date, tags } =
4851
)}
4952
<span>{author.data.title}</span>
5053
</a>
54+
)
5155
))
5256
}
5357
</li>

src/layouts/Posts.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ const { className, posts, fluid } = Astro.props;
4747
.includes(slugify(author.data.title))
4848
)
4949
.map((author) => (
50+
author.data.sponsor ? (
51+
<span>{author.data.title} @{author.data.company}</span>
52+
) : (
5053
<a
5154
href={`/authors/${slugify(author.data.title)}`}
5255
class="flex items-center hover:text-primary font-medium"
@@ -62,6 +65,7 @@ const { className, posts, fluid } = Astro.props;
6265
)}
6366
<span>{author.data.title}</span>
6467
</a>
68+
)
6569
))}
6670
</li>
6771
<li class="mr-5 flex items-center flex-wrap font-medium">

0 commit comments

Comments
 (0)