Skip to content

Commit a505cac

Browse files
committed
feat: Cross-linking of news with operators and countries
1 parent 310f870 commit a505cac

32 files changed

Lines changed: 136 additions & 86 deletions

archetypes/operator/index.de.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ country:
66
- 'country1'
77
- 'country2'
88
- 'country3'
9+
operator: '{{ .File.ContentBaseName }}'
910
---
1011

1112
<!-- Entferne das "WIP" Snippet, wenn die Inhalte der Seite vollständig sind -->

archetypes/operator/index.en.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ country:
66
- 'country1'
77
- 'country2'
88
- 'country3'
9+
operator: '{{ .File.ContentBaseName }}'
910
---
1011

1112
<!-- Remove the WIP snippet if the page is complete -->

assets/sass/content.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ th, td {
3131
padding: 1rem;
3232
}
3333

34-
p {
35-
margin-bottom: 3.2rem;
36-
text-align: justify;
37-
}
38-
3934
.footnotes {
4035

4136
p {

assets/sass/sidemenu.scss

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,18 @@
7878
}
7979
}
8080

81-
.o-news__list {
82-
list-style-type: none;
83-
list-style-position: outside;
84-
padding-left: 0;
81+
.o-related {
82+
&__list {
83+
list-style-type: none;
84+
list-style-position: outside;
85+
padding-left: 0;
86+
}
8587

8688
&__date {
8789
padding-left: 2.5rem;
8890
}
91+
92+
p {
93+
margin-bottom: 0;
94+
}
8995
}

assets/sass/styles.scss

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,22 +102,26 @@ img {
102102
}
103103

104104
.o-list__picture {
105-
width: 15rem;
106105
margin-right: 1.2rem;
107106
}
108107

109108
.o-list__picture--operator {
110109
width: auto;
110+
margin-left: 1rem;
111111
}
112112

113-
.o-list__link-wrapper {
113+
.o-related__operator-wrapper > .o-related__list {
114114
display: flex;
115-
gap: 2rem;
115+
gap: 1rem;
116116
margin-bottom: 0;
117117
padding-left: 0;
118+
column-gap: 4rem;
119+
list-style-type: none;
118120

119-
li {
120-
list-style-type: none;
121+
li > a {
122+
display: flex;
123+
gap: 1rem;
124+
align-items: center;
121125
}
122126
}
123127

@@ -147,6 +151,10 @@ img {
147151
display: flex;
148152
flex-direction: column;
149153
gap: 1.5rem;
154+
155+
p {
156+
text-align: justify;
157+
}
150158
}
151159

152160
&__news_image {
@@ -195,3 +203,8 @@ img {
195203
.pagefind-highlight {
196204
padding: 0px;
197205
}
206+
207+
.o-flag {
208+
height: 2rem;
209+
width: auto;
210+
}

content/news/2/index.de.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ date: "2025-02-16"
33
draft: false
44
author: "Willy"
55
title: "Grenzüberschreitende FIP-Tickets der SNCB"
6+
country:
7+
- belgium
8+
- netherlands
9+
operator:
10+
- sncb
611
---
712

813
Die belgische Staatsbahn SNCB / NMBS bietet auf ihrer [Website für internationale Fahrkarten ](https://www.b-europe.com/) neben regulären grenzüberschreitenden Tickets nun auch Tickets mit FIP-Rabatt an. Dies erleichtert den Kauf von Fahrkarten, die über die Grenze Belgiens hinausgehen, erheblich. Bisher mussten diese an einem Schalter in Belgien oder bestimmten Nachbarländern wie Deutschland oder den Niederlanden gekauft werden.

content/news/2/index.en.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ date: "2025-02-16"
33
draft: false
44
author: "Willy"
55
title: "Cross-border FIP Tickets of SNCB"
6+
country:
7+
- belgium
8+
- netherlands
9+
operator:
10+
- sncb
611
---
712

813
The Belgian national railway company SNCB / NMBS now offers tickets with FIP discount on their [international ticket website](https://www.b-europe.com/) in addition to regular cross-border tickets. This significantly simplifies the purchase of tickets that go beyond the borders of Belgium. Previously, these had to be purchased at a counter in Belgium or certain neighboring countries such as Germany or the Netherlands.

content/news/4/index.de.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
date: "2025-05-16"
33
draft: false
44
title: "Eurostar Preiserhöhung"
5+
country:
6+
- belgium
7+
- netherlands
8+
operator:
9+
- eurostar
510
---
611

712
Ab dem 1. Mai 2025 erhöht Eurostar die Preise auf alle FIP Fahrkarten um 5€ bzw. 5£. Die Preiserhöhung betrifft alle FIP Globalpreise bei Eurostar Blue und Eurostar Red (Thalys) in allen Klassen. Die neuen Preise gelten für alle Buchungen, die ab dem 1. Mai 2025 getätigt werden. [^1]

content/news/4/index.en.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
date: "2025-05-16"
33
draft: false
44
title: "Eurostar Price Increase"
5+
country:
6+
- belgium
7+
- netherlands
8+
operator:
9+
- eurostar
510
---
611

712
Starting May 1, 2025, Eurostar will increase prices on all FIP tickets by €5 or £5. The price increase applies to all FIP Global Fares for Eurostar Blue and Eurostar Red (Thalys) in all classes. The new prices apply to all bookings made from May 1, 2025 onwards. [^1]

content/operator/dsb/index.de.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: 'DSB'
44
description: "Informationen über die FIP-Bedingungen bei DSB."
55
country:
66
- "denmark"
7+
operator: "dsb"
78
---
89

910
Die DSB (Danske Statsbaner) ist die staatliche Eisenbahngesellschaft in Dänemark. Sie betreibt den Großteil des Personenverkehrs auf dem dänischen Schienennetz.

0 commit comments

Comments
 (0)