Skip to content

Commit 3588c0c

Browse files
committed
feat: Auto-derive important info and risk of confusion
1 parent 65a8899 commit 3588c0c

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

content/operator/sncf/index.en.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ Reservations are mandatory on all `TGV`, almost all `IC` trains, and some region
4242
type="highspeed"
4343
fip_accepted=true
4444
reservation_required=true
45-
risk_of_confusion=true
46-
important_info=true
4745
route_overview_url="https://www.sncf-connect.com/assets/media/2021-05/2014_axes-tgv_0.pdf"
4846
%}}
4947
The `TGV` inOui is SNCF's high-speed train, connecting many cities in France and international destinations (e.g. Munich, Frankfurt am Main, Barcelona, Luxembourg, Brussels, Zurich, Milan). Each seat number exists twice in the carriage; the reserved seat is the one with the illuminated number.
@@ -72,7 +70,6 @@ Prices differ between peak and off-peak trains. The classification is not public
7270
type="highspeed"
7371
fip_accepted=false
7472
reservation_required=true
75-
risk_of_confusion=true
7673
%}}
7774

7875
The `TGV` OuiGo is SNCF's low-cost high-speed train, serving many cities in France and some international destinations.
@@ -147,7 +144,6 @@ Cost depends on route and occupancy.
147144
type="regional"
148145
fip_accepted=true
149146
reservation_required=partially
150-
risk_of_confusion=true
151147
%}}
152148
`TER` is SNCF's regional train, connecting various cities in France.
153149
Some lines from Paris require reservations, see [Reservation requirement in regional trains](#reservation-requirement-in-regional-trains).
@@ -162,7 +158,6 @@ On the Marseille – Toulon – Nice route, FIP is not valid as `TER` trains are
162158
type="regional"
163159
fip_accepted=partially
164160
reservation_possible=false
165-
important_info=true
166161
%}}
167162
RER is a suburban train operated by SNCF in Île de France (Greater Paris) and surrounding cities.
168163

layouts/shortcodes/train-category.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"fip_accepted" (default true (.Get "fip_accepted"))
55
"reservation_required" (default false (.Get "reservation_required"))
66
"reservation_possible" (default false (.Get "reservation_possible"))
7-
"risk_of_confusion" (default false (.Get "risk_of_confusion"))
8-
"important_info" (default false (.Get "important_info"))
7+
"risk_of_confusion" (strings.Contains .Inner "m-text-highlight--confusion")
8+
"important_info" (strings.Contains .Inner "m-text-highlight--important")
99
"route_overview_url" (.Get "route_overview_url")
1010
"additional_information_url" (.Get "additional_information_url")
1111
"content" (.Inner | .Page.RenderString)

0 commit comments

Comments
 (0)