Skip to content

Commit 1c11e8c

Browse files
authored
Move schema.org annotations to external data file (#19)
* Fix link * Move schema.org annotations to external data file We can't populate this via Hugo parameters unfortunately as their keys are lower-cased, which breaks the generated JSON.
1 parent cf2423f commit 1c11e8c

File tree

4 files changed

+37
-23
lines changed

4 files changed

+37
-23
lines changed

content/_index.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,7 @@ title: "Open Transport Community Conference 2025"
33
description: "The (un)conference about Free Software and Open Data for mobility and public transport."
44
startDate: "2025-10-17T09:00:00+02:00"
55
endDate: "2025-10-18T18:00:00+02:00"
6-
location:
7-
'@type': Place
8-
name: "ÖBB Open Innovation Factory"
9-
address:
10-
'@type': PostalAddress
11-
addressCountry: AT
12-
addressLocality: Wien
13-
postalCode: 1020
14-
streetAddress: Lassallestraße 5
15-
geo:
16-
'@type': GeoCoordinates
17-
latitude": 48.221231
18-
longitude": 16.395555
6+
jsonld: event2025
197
images:
208
- logo.png
219

content/cfp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Call for Participation
33
---
44

5-
The Open Transport Community Conference is an [Unconference](https://en.wikipedia.org/wiki/Unconference">Unconference). That is, the final session schedule will only be put together at the event itself. In order to prepare and allow people to see possible topics, we are nevertheless already collecting suggestions for sessions.
5+
The Open Transport Community Conference is an [Unconference](https://en.wikipedia.org/wiki/Unconference). That is, the final session schedule will only be put together at the event itself. In order to prepare and allow people to see possible topics, we are nevertheless already collecting suggestions for sessions.
66

77
Unlike for conventional talks you don't need to be a domain expert to suggest a session, and you are not expected to fill the session with a prepared presentation. Suggesting a topic you want to learn more about and hope to find others to learn from at the conference is also perfectly valid. Helping with leading/moderating the discussion and/or taking notes would be appreciated though.
88

data/jsonld/event2025.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"@context": "http://schema.org",
3+
"@type": "Event",
4+
"name": "Open Transport Community Conference 2025",
5+
"description": "The (un)conference about Free Software and Open Data for mobility and public transport.",
6+
"startDate": "2025-10-17T09:00:00+02:00",
7+
"endDate": "2025-10-18T18:00:00+02:00",
8+
"url": "https://open-transport.org",
9+
"location": {
10+
"@type": "Place",
11+
"address": {
12+
"@type": "PostalAddress",
13+
"addressCountry": "AT",
14+
"addressLocality": "Wien",
15+
"postalCode": "1020",
16+
"streetAddress": "Lassallestraße 5"
17+
},
18+
"geo": {
19+
"@type": "GeoCoordinates",
20+
"latitude": 48.221231,
21+
"longitude": 16.395555
22+
},
23+
"name": "ÖBB Open Innovation Factory"
24+
},
25+
"potentialAction": [ {
26+
"@type": "RegisterAction",
27+
"target": "https://pretix.eu/open-transport/2025/"
28+
}
29+
]
30+
}

layouts/partials/head.html

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@
66
{{ hugo.Generator }}
77
{{ template "_internal/opengraph.html" . }}
88
{{ partialCached "css.html" . }}
9-
{{ if .Params.location }}
9+
10+
{{ $jsonLdFile := "" }}
11+
{{ with .Params.jsonld }}
12+
{{ $jsonLdFile = index $.Site.Data.jsonld . }}
1013
<script type="application/ld+json">
11-
{{ dict
12-
"name" .Title
13-
"description" .Description
14-
"startDate" .Params.startDate
15-
"endDate" .Params.endDate
16-
"url" .Permalink
17-
"location" .Params.location
18-
| jsonify | safeJS }}
14+
{{ $jsonLdFile | jsonify | safeJS }}
1915
</script>
2016
{{ end }}

0 commit comments

Comments
 (0)