Skip to content

Commit 741260b

Browse files
committed
feat: Use structured data to show operators without FIP
1 parent 0f8b538 commit 741260b

File tree

8 files changed

+26
-75
lines changed

8 files changed

+26
-75
lines changed

archetypes/country.en.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

archetypes/country/index.de.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
draft: false
33
title: '{{ .File.ContentBaseName | title }}' # Ändere den Name auf den deutschen Ländername
44
country: '{{ .File.ContentBaseName }}'
5+
params:
6+
operators_without_fip:
7+
- # Liste Betreiber, die kein FIP akzeptieren
58
---
69

710
<!-- Entferne das "WIP" Snippet, wenn die Inhalte der Seite vollständig sind -->
@@ -46,13 +49,3 @@ Nur Grenzpunkte an der Landesgrenze zu anderen Ländern. Diese sollten aufgefüh
4649
Welche Routen kann man aus dem entsprechenden Land nutzen.
4750
Welche Hinweise & Empfehlungen gibt es für die Einreise aus dem Land
4851
-->
49-
50-
## FIP Bewertung
51-
52-
<!--
53-
Die Bewertungskriterien befinden sich noch im Aufbau.
54-
-->
55-
56-
## Betreiber ohne FIP
57-
<!-- Ersetze den generischen Link mit dem Link zum jeweiligen Betreiber -->
58-
- [Name der Bahngesellschaft](../../operator)

archetypes/country/index.en.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
draft: false
33
title: '{{ .File.ContentBaseName | title }}'
44
country: '{{ .File.ContentBaseName }}'
5+
params:
6+
operators_without_fip:
7+
- # List operators without FIP here
58
---
69

710
<!-- Remove the WIP snippet if the page is complete -->
@@ -46,13 +49,3 @@ Only border points at the national border with other countries. These should be
4649
Which routes can be used from the respective country?
4750
What tips & recommendations are there for entry from the country
4851
-->
49-
50-
## FIP Rating
51-
52-
<!--
53-
The rating criteria are still under development
54-
-->
55-
56-
## Operators without FIP
57-
<!-- Replace the general link with a link to the operator -->
58-
- [Name of the operator](../../operator)

content/country/belgium/index.de.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ draft: false
33
title: "Belgien"
44
description: "Informationen über die FIP-Bedingungen für Belgien und für welche Betreiber Vergünstigungen genutzt werden können."
55
country: "belgium"
6+
params:
7+
operators_without_fip:
8+
- European Sleeper
9+
- OuiGo
610
---
711

812
## FIP Nutzung
@@ -43,12 +47,3 @@ Von den Niederlanden aus können grenzüberschreitende Regionalzüge (dazu gehö
4347
### Frankreich
4448

4549
Von Frankreich aus können grenzüberschreitende Regionalzüge genutzt werden, dafür wird ein zusätzliches FIP-Ticket für den französischen Abschnitt benötigt. Bei den internationalen TGV-Zügen gibt es einen Globalpreis, FIP Freifahrtscheine haben hier keine Gültigkeit, sie werden nicht von der SNCB betrieben. Mit dem Eurostar (ehemals Thalys) kann ebenfalls von Frankreich aus das Netz der SNCB erreicht werden. Hier wird ein spezielles FIP-Ticket von Eurostar auf dem kompletten Abschnitt (auch innerhalb von Belgien) benötigt. ([siehe Eurostar]({{% ref "/operator/eurostar" %}} "Eurostar"))
46-
47-
## FIP Bewertung
48-
49-
Noch ausstehend
50-
51-
## Betreiber ohne FIP
52-
53-
- European Sleeper
54-
- OuiGo

content/country/belgium/index.en.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ draft: false
33
title: "Belgium"
44
description: "Find out about the FIP conditions for Belgium and for which operators you can benefit from discounts."
55
country: "belgium"
6+
params:
7+
operators_without_fip:
8+
- European Sleeper
9+
- OuiGo
610
---
711

812
## FIP Information
@@ -43,12 +47,3 @@ From the Netherlands, cross-border regional trains (including IC here) can be us
4347
### France
4448

4549
From France, cross-border regional trains can be used, requiring an additional FIP ticket for the French section. For international TGV trains, there is a global price, and FIP Coupons passes are not valid as they are not operated by SNCB. The Eurostar (formerly Thalys) can also be used from France to reach the SNCB network. Here, a special FIP ticket from Eurostar is required for the entire section including within Belgium. ([see Eurostar]({{% ref "/operator/eurostar" %}} "Eurostar"))
46-
47-
## FIP Rating
48-
49-
Still pending
50-
51-
## Operators without FIP
52-
53-
- European Sleeper
54-
- OuiGo

i18n/de.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ anchorLink:
3030
copied: Link wurde in die Zwischenablage kopiert
3131
skipToContent: Zum Inhalt springen
3232
wip: An dieser Seite wird noch gearbeitet und Inhalte können unvollständig sein. Wir freuen uns, wenn du zur Verbesserung dieser Seite beträgst. [Mehr Information auf GitHub](https://github.com/fipguide/fipguide.github.io/wiki/Deutsch).
33+
operators_without_fip: Betreiber ohne FIP

i18n/en.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ anchorLink:
3030
copied: Link has been copied to the clipboard
3131
skipToContent: Skip to content
3232
wip: This page is still under construction and content may be incomplete. We would be happy if you contribute to improve this page. [More information on GitHub](https://github.com/fipguide/fipguide.github.io/wiki/English).
33+
operators_without_fip: Operators without FIP

layouts/country/single.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,23 @@ <h1 data-pagefind-meta="title">{{ .Title }}</h1>
2121
</div>
2222
</div>
2323
<div class="o-single__container">
24-
<h3 id="related">{{ T "_operator__list_title"}} in {{ .Title }}</h3>
24+
<h2 id="related">{{ T "_operator__list_title"}} in {{ .Title }}</h2>
2525
<ul class="o-list__link-wrapper" aria-labelledby="related">
2626
{{ range $related }}
2727
<li class="col-12 col-lg-3 col-sm-6">
2828
{{ partial "operator-list-item" . }}
2929
</li>
3030
{{ end }}
3131
</ul>
32+
{{ with .Params.operators_without_fip }}
33+
<span class="o-divider"></span>
34+
<h2 id="operators-without-fip-title">{{ T "operators_without_fip"}} in {{ $.Title }}</h2>
35+
<ul>
36+
{{ range . }}
37+
<li>{{ . | markdownify }}</li>
38+
{{ end }}
39+
</ul>
40+
{{ end }}
3241
</div>
3342
{{ partial "image" (partial "helper/contentImage" . ) }}
3443
</div>

0 commit comments

Comments
 (0)