Skip to content

Commit 1ae1eb6

Browse files
committed
Update titles and descriptions.
1 parent 73b7d5e commit 1ae1eb6

File tree

8 files changed

+22
-23
lines changed

8 files changed

+22
-23
lines changed

.env.development

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
EP_SESSIONS_API="https://static.europython.eu/programme/ep2024/releases/current/sessions.json"
2-
EP_SPEAKERS_API="https://gist.githubusercontent.com/nikoshell/24f8c99de3758dc4ed1391876c382b43/raw/bdf11fe89e5010f35dc1351e9b71c02a19adefe2/24speakers.json"
3-
EP_SCHEDULE_API="https://static.europython.eu/programme/ep2024/releases/current/schedule.json"
1+
EP_SESSIONS_API="https://static.europython.eu/programme/ep2025/releases/current/sessions.json"
2+
EP_SPEAKERS_API="https://static.europython.eu/programme/ep2025/releases/current/speakers.json"
3+
EP_SCHEDULE_API="https://static.europython.eu/programme/ep2025/releases/current/schedule.json"

src/layouts/Layout.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ export interface Props {
1717
}
1818
1919
const { title, description } = Astro.props;
20+
21+
if (!title || !description) {
22+
throw new Error(`${Astro.url.pathname} Both 'title' and 'description' must be set.`);
23+
}
2024
---
2125

2226
<BaseLayout title={title} description={description}>

src/layouts/ScheduleLayout.astro

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
---
22
import Layout from "@layouts/Layout.astro";
3+
import Headline from "@ui/Headline.astro";
34
45
export interface Props {
56
title: string;
67
description: string;
78
}
89
9-
const { title, description } = Astro.props;
10+
const { title="", description } = Astro.props;
1011
---
11-
<Layout title="Schedule" description="Schedule" >
12+
<Layout title={title || "Schedule for 2025"} description={description} >
1213
<Fragment slot="head">
1314
<link rel="preconnect" href="https://fonts.googleapis.com">
1415
<link href="https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=block" rel="stylesheet">
1516
</Fragment>
16-
<div class="layout-wrapper2">
17-
<slot />
18-
</div>
17+
<>
18+
<Headline as="h2" id="schedule-main" title="2025 Schedule" />
19+
<div class="layout-wrapper2">
20+
<slot />
21+
</div>
22+
</>
1923
</Layout>
2024

2125
<style is:global>

src/pages/schedule.astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
import { getEntry, getCollection } from "astro:content";
33
import Layout from "@layouts/ScheduleLayout.astro";
44
import ScheduleDay from "@components/schedule/day.astro";
5-
import Headline from "@ui/Headline.astro";
6-
import Button from "@ui/Button.astro";
75
86
interface Props {
97
dayName: string;
@@ -21,9 +19,8 @@ const days = await getCollection("days");
2119
2220
---
2321

24-
<Layout title="" description="">
22+
<Layout description="Browse all scheduled events.">
2523

26-
<Headline as="h2" id=`schedule-main` title="2025 Schedule" />
2724
{
2825
days.map((day) => (
2926
<ScheduleDay day={day} />

src/pages/schedule/day/[day].astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
import { type CollectionEntry, getEntry, getCollection } from "astro:content";
33
import Layout from "@layouts/ScheduleLayout.astro";
44
import ScheduleDay from "@components/schedule/day.astro";
5-
import Headline from "@ui/Headline.astro";
6-
import Button from "@ui/Button.astro";
75
86
export const getStaticPaths = async () => {
97
const days = await getCollection("days");
@@ -24,7 +22,6 @@ if (!dayEntry) {
2422
const day: Day = dayEntry;
2523
---
2624

27-
<Layout title="" description="">
28-
<Headline as="h2" id=`schedule-main` title="2025 Schedule" />
25+
<Layout description=`Schedule for the day: ${day.id}`>
2926
<ScheduleDay day={day} />
3027
</Layout>

src/pages/schedule/talks.astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { type CollectionEntry, getCollection } from "astro:content";
33
import Layout from "@layouts/ScheduleLayout.astro";
44
import ScheduleDay from "@components/schedule/day.astro";
55
import { slugify } from '@utils/content';
6-
import Headline from "@ui/Headline.astro";
76
87
export const getStaticPaths = async () => {
98
const sessions = await getCollection("sessions");
@@ -24,9 +23,7 @@ const days = await getCollection("days");
2423
2524
---
2625

27-
<Layout title="" description="">
28-
29-
<Headline as="h2" id=`schedule-main` title="2025 Schedule" />
26+
<Layout description="Browse all scheduled talks.">
3027
{
3128
days
3229
.filter((day) => {

src/pages/schedule/tutorials.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const days = await getCollection("days");
2424
2525
---
2626

27-
<Layout title="" description="">
27+
<Layout description="Browse all scheduled tutorials.">
2828

2929
<Headline as="h2" id=`schedule-main` title="2025 Schedule" />
3030
{

src/pages/test_components.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import Icon from "@ui/Icon.astro"
77
---
88

99
<Layout
10-
title=""
11-
description=""
10+
title="test components"
11+
description="Showcase for all components and variants."
1212
>
1313

1414
<head>

0 commit comments

Comments
 (0)