File tree Expand file tree Collapse file tree 4 files changed +37
-1
lines changed
components/sections/updates Expand file tree Collapse file tree 4 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 11---
2- import DeadlineCard from " ./deadline -card.astro" ;
2+ import DeadlineCard from " ./week -card.astro" ;
33import Headline from " @ui/Headline.astro" ;
44import { getCollection } from " astro:content" ;
55import Section from " @ui/Section.astro" ;
Original file line number Diff line number Diff line change 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!
You can’t perform that action at this time.
0 commit comments