Skip to content

Commit a69baa5

Browse files
committed
Fix collection week
1 parent 36bef47 commit a69baa5

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
import { getEntry } from "astro:content";
3+
import Card from "./card.astro";
4+
5+
export interface Props {
6+
id: string;
7+
}
8+
9+
const { id } = Astro.props;
10+
11+
const deadline = await getEntry("week", id);
12+
13+
if (!deadline) {
14+
throw new Error(`No deadline found with id ${id}`);
15+
}
16+
17+
const { Content } = await deadline.render();
18+
---
19+
20+
<Card
21+
image={deadline.data.image}
22+
title={deadline.data.title}
23+
url={deadline.data.url}
24+
subtitle={deadline.data.subtitle}
25+
>
26+
<Content />
27+
</Card>

src/components/sections/updates/week.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import DeadlineCard from "./deadline-card.astro";
2+
import DeadlineCard from "./week-card.astro";
33
import Headline from "@ui/Headline.astro";
44
import { getCollection } from "astro:content";
55
import Section from "@ui/Section.astro";
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Venues
3+
subtitle: Propose a Venue
4+
url: https://europython-society.org/call-for-europython-2026-host-venues
5+
image: "./venue.jpg"
6+
---
7+
8+
Are you a community builder dreaming of bringing EuroPython to your city? The
9+
Call for Venues for EP 2026 is now open!

src/content/week/venue.jpg

74.5 KB
Loading

0 commit comments

Comments
 (0)