Skip to content

Commit b07e1ea

Browse files
authored
Merge pull request #234 from pyladies/create-rss-feed
Create RSS Feed
2 parents 10559f4 + 4d689aa commit b07e1ea

File tree

8 files changed

+42
-18
lines changed

8 files changed

+42
-18
lines changed

src/config/social.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"vimeo": "",
2424
"tiktok": "",
2525
"foursquare": "",
26-
"rss": "",
26+
"rss": "https://conference.pyladies.com/rss.xml",
2727
"email": "",
2828
"phone": "",
2929
"address": "",

src/content/authors/cheuk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: Cheuk
3-
meta_title: ""
3+
meta_title: "About Cheuk"
44
image: /images/authors/cheuk.jpg
5-
description: this is meta description
5+
description: About Cheuk
66
social:
77
linkedin: https://www.linkedin.com/in/cheukting-ho
88
github: https://github.com/Cheukting

src/content/authors/denny-perez.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: Denny Pérez
3-
meta_title: ""
3+
meta_title: "About Denny"
44
image: /images/authors/denny.jpg
5-
description: this is meta description
5+
description: About Denny
66
social:
77
twitter: https://twitter.com/dennyperez18
88
github: https://github.com/DennyPerez18

src/content/authors/mariatta.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: Mariatta
3-
meta_title: ""
3+
meta_title: "About Mariatta"
44
image: /images/authors/mariatta.jpg
5-
description: this is meta description
5+
description: About Mariatta
66
social:
77
bluesky: https://bsky.app/profile/mariatta.ca
88
mastodon: https://fosstodon.org/@mariatta

src/content/authors/naomi-ceder.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: Naomi Ceder
3-
meta_title: ""
3+
meta_title: "About Naomi"
44
image: /images/authors/naomi.jpg
5-
description: this is meta description
5+
description: About Naomi
66
social:
77
linkedin: https://www.linkedin.com/in/naomiceder
88
bluesky: https://bsky.app/profile/naomiceder.tech

src/content/posts/2025-pyladiescon-is-back.mdx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,4 @@ Think you have what it takes to keep the digital magic flowing? We're recruiting
9090

9191
---
9292

93-
## Stay Connected 🔗
94-
95-
Don’t miss a beat! Follow us for announcements and updates.
96-
97-
- **Blog**: [conference.pyladies.com/blog](https://conference.pyladies.com/blog)
98-
For all other social media handles, you can find them at the footer.
99-
100-
---
101-
10293
We can’t wait to see you soon at **PyLadiesCon 2025** is going to be a great way to end the year 🚀!

src/layouts/PostSingle.astro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,17 @@ const { title, description, authors, categories, image, date, tags } =
9494
<div class="md:col-10">
9595
<div class="content mb-16 text-left">
9696
<Content />
97+
<hr>
98+
<div>
99+
<h2 id="stay-connected">Stay Connected 🔗</h2>
100+
<p>Don’t miss a beat! Follow us for announcements and updates.</p>
101+
<ul>
102+
<li><strong>Blog</strong>: <a href="https://conference.pyladies.com/blog">conference.pyladies.com/blog</a></li>
103+
<li><strong>RSS Feed</strong>: <a href="https://conference.pyladies.com/rss.xml">conference.pyladies.com/feed.xml</a></li>
104+
<li><strong>Social Media</strong>: Find our social media handles at the footer.</li>
105+
<li><strong>Official Conference Hashtag</strong>: <strong>#PyLadiesCon</strong></li>
106+
</ul>
107+
</div>
97108
</div>
98109
<div class="flex flex-wrap items-center justify-between">
99110
<ul class="mr-4 mb-4 space-x-3">

src/pages/rss.xml.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import rss from '@astrojs/rss';
2+
import { getCollection } from 'astro:content';
3+
4+
export async function GET(context) {
5+
const blog = await getCollection('posts');
6+
return rss({
7+
title: 'PyLadiesCon News and Announcements',
8+
description: 'News and announcements from PyLadiesCon, a Global PyLadies Conference.',
9+
site: context.site,
10+
items: blog.map((post) => ({
11+
title: post.data.title,
12+
pubDate: post.data.date,
13+
description: post.data.description,
14+
// Compute RSS link from post `id`
15+
// This example assumes all posts are rendered as `/blog/[id]` routes
16+
link: `/${post.id}/`,
17+
content: post.content,
18+
customData: '<language>en-us</language>',
19+
20+
})),
21+
});
22+
}

0 commit comments

Comments
 (0)