Skip to content

Commit 258b7b7

Browse files
Update location rich results.
1 parent f0b0cba commit 258b7b7

1 file changed

Lines changed: 22 additions & 11 deletions

File tree

src/components/seo/EventSchema2026.astro

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ function personId(name: string) {
1010
const confirmedSpeakers = data.speakers.filter((speaker) => !speaker.placeholder);
1111
const performers = [...confirmedSpeakers, ...data.hosts];
1212
13+
const venueLocation = {
14+
"@type": "Place",
15+
name: "NEMO Science Museum",
16+
address: {
17+
"@type": "PostalAddress",
18+
streetAddress: "Oosterdok 2",
19+
addressLocality: "Amsterdam",
20+
postalCode: "1011 VX",
21+
addressCountry: "NL",
22+
},
23+
};
24+
1325
const personNodes = performers.map((person) => ({
1426
"@type": "Person",
1527
"@id": personId(person.name),
@@ -48,17 +60,7 @@ const eventSchema = {
4860
inLanguage: "en",
4961
image: `${site}/images/card.png?v=2026`,
5062
url: `${site}/`,
51-
location: {
52-
"@type": "Place",
53-
name: "NEMO Science Museum",
54-
address: {
55-
"@type": "PostalAddress",
56-
streetAddress: "Oosterdok 2",
57-
addressLocality: "Amsterdam",
58-
postalCode: "1011 VX",
59-
addressCountry: "NL",
60-
},
61-
},
63+
location: venueLocation,
6264
organizer: {
6365
"@id": `${site}/#organization`,
6466
},
@@ -75,20 +77,29 @@ const eventSchema = {
7577
name: "Do iOS 2026 Workshop Day",
7678
startDate: "2026-11-10T09:00:00+01:00",
7779
endDate: "2026-11-10T17:00:00+01:00",
80+
eventStatus: "https://schema.org/EventScheduled",
81+
eventAttendanceMode: "https://schema.org/OfflineEventAttendanceMode",
82+
location: venueLocation,
7883
description: "Full-day hands-on iOS development workshops.",
7984
},
8085
{
8186
"@type": "Event",
8287
name: "Do iOS 2026 Conference Day 1",
8388
startDate: "2026-11-11T09:00:00+01:00",
8489
endDate: "2026-11-11T18:00:00+01:00",
90+
eventStatus: "https://schema.org/EventScheduled",
91+
eventAttendanceMode: "https://schema.org/OfflineEventAttendanceMode",
92+
location: venueLocation,
8593
description: "Conference talks, lunch, and walking dinner.",
8694
},
8795
{
8896
"@type": "Event",
8997
name: "Do iOS 2026 Conference Day 2",
9098
startDate: "2026-11-12T09:00:00+01:00",
9199
endDate: "2026-11-12T18:00:00+01:00",
100+
eventStatus: "https://schema.org/EventScheduled",
101+
eventAttendanceMode: "https://schema.org/OfflineEventAttendanceMode",
102+
location: venueLocation,
92103
description: "More conference talks and community networking.",
93104
},
94105
],

0 commit comments

Comments
 (0)