From e62e95b1db613fe3cc9fb3b882bf6142629457a4 Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Fri, 26 Dec 2025 19:27:54 +0100 Subject: [PATCH 1/7] refactor: faq structure --- content/generalinformation/_index.de.md | 106 +---------------------- content/generalinformation/_index.en.md | 110 +----------------------- content/generalinformation/faq/_1.de.md | 4 + content/generalinformation/faq/_2.de.md | 4 + layouts/partials/expander.html | 17 ++++ layouts/shortcodes/expander.html | 25 ++---- layouts/shortcodes/faq.html | 7 ++ 7 files changed, 45 insertions(+), 228 deletions(-) create mode 100644 content/generalinformation/faq/_1.de.md create mode 100644 content/generalinformation/faq/_2.de.md create mode 100644 layouts/partials/expander.html create mode 100644 layouts/shortcodes/faq.html diff --git a/content/generalinformation/_index.de.md b/content/generalinformation/_index.de.md index f5cbcc557..9c53b379f 100644 --- a/content/generalinformation/_index.de.md +++ b/content/generalinformation/_index.de.md @@ -159,111 +159,7 @@ FIP Freifahrtscheine und nationale Fahrvergünstigungen von Angehörigen werden ## FAQ -{{% expander "Wofür steht FIP?" info "faq" %}} - -FIP steht für _Groupement pour les facilités de circulation internationales du personnel des chemins de fer_. Es ist die Vereinigung für die internationalen Fahrvergünstigungen des Eisenbahnpersonals. -Hierbei sind Eisenbahn- und Schifffahrtunternehmen der UIC (Internationaler Eisenbahnverband) angeschlossen. - -Als Berechtigungsausweis gilt die Internationale Ermäßigungskarte für Eisenbahnpersonal, kurz FIP-Ausweis oder FIP-Card. - -{{% /expander %}} - -{{% expander "Wer hat Anspruch auf FIP?" info "faq" %}} - -Anspruchsberechtigt sind in der Regel aktive und pensionierte Mitarbeitende von FIP-Mitgliedern. Auch Familienangehörige können unter bestimmten Bedingungen berechtigt sein. -Nach zwölf Monaten Betriebszugehörigkeit können Mitarbeitende den Berechtigungsausweis beantragen. -Bitte wende dich für die Beantragung und Inanspruchnahme an deine Personalabteilung. - -{{% /expander %}} - -{{% expander "Gilt FIP auch für Angehörige?" info "faq" %}} - -Abhängig der Vereinbarung zwischen den FIP-Mitgliedern können auch Familienangehörige (Kinder, Lebenspartner) FIP-Vergünstigungen nutzen. Dies wird immer auf den jeweiligen [Betreiberseiten](operator) mit genannt. Auch Ermäßigungen für Kinder sind hier zu finden. - -{{% /expander %}} - -{{% expander "Was ist der FIP-Ausweis?" info "faq" %}} -Der FIP-Ausweis ist der Berechtigungsausweis für vergünstigte Fahrten bei FIP-Mitgliedern im Ausland. -Er ermöglicht kostenlose oder vergünstigte Reisen bei den teilnehmenden Bahnen und Schifffahrtsgesellschaften. -{{% /expander %}} - -{{% expander "Wo erhalte ich meinen FIP-Ausweis?" info "faq" %}} - -Wende dich hierzu an deine Personalabteilung. -Beachte, dass du in der Regel erst ab zwölf Monaten Betriebszugehörigkeit einen Anspruch auf internationale Fahrvergünstigungen hast. - -{{% /expander %}} - -{{% expander "Welche Vergünstigungen erhalte ich durch FIP?" info "faq" %}} - -Mit dem FIP-Ausweis bist du berechtigt, zu vergünstigten Konditionen die Verkehrsmittel des jeweiligen FIP-Mitglieds zu nutzen. -Es gelten unterschiedliche Regelungen je Betreibergesellschaft. Details erfährst du auf den [Unterseiten der Betreiber](operator). - -Es gibt verschiedene Arten an Vergünstigungen: - -1. **Ermäßigte Fahrkarten:** Mit dem FIP-Ausweis erhältst du stark vergünstigte Tickets (in der Regel 50% Rabatt auf den Flexpreis bzw. Globalpreis). Es gibt keine Mengenbeschränkung und Beantragungsfristen. -2. **Kostenlose Fahrten mit FIP Freifahrtscheinen:** Bei vielen FIP-Mitgliedern kannst du mit einem FIP Freifahrtschein kostenlos reisen. Pro Betreibergesellschaft ist in einem Kalenderjahr einmal die Bestellung eines Freifahrtscheins mit ein bis vier Feldern möglich. - -{{% highlight tip %}} -Nicht immer ist eine Fahrt mit FIP die günstigste Option. In manchen Ländern sind Sparpreise verfügbar, welche günstiger sind. -{{% /highlight %}} -{{% /expander %}} - -{{% expander "Wo erhalte ich vergünstigte Tickets mit dem Berechtigungsausweis?" info "faq" %}} -Die Bestellung unterscheidet sich je nach Betreiber, zum Beispiel online, telefonisch oder im Reisezentrum. -Eine genaue Übersicht getrennt nach FIP-Mitgliedern findest du [hier](operator). -{{% /expander %}} - -{{% expander "Welche Regelungen gibt es bei FIP Freifahrtscheinen?" info "faq" %}} - -In einem Kalenderjahr kannst du pro FIP-Mitglied einen FIP Freifahrtschein mit ein bis vier Feldern beantragen. - -In der Regel ist eine Bearbeitungsfrist bei der Beantragung zu beachten. - -{{% /expander %}} - -{{% expander "Wo kann ich FIP Freifahrtscheine bestellen?" info "faq" %}} -Die Beantragung von internationalen Freifahrten erfolgt in der Regel über den Personalservice oder das Reisezentrum deines Eisenbahnverkehrsunternehmens. Manche Unternehmen bieten auch Online-Portale an. -{{% /expander %}} - -{{% expander "Wie viele Felder kann ich bei FIP Freifahrtscheinen beantragen?" info "faq" %}} -Je nach individuellem Bedarf können FIP Freifahrtscheine mit 1 bis 4 Feldern pro FIP-Mitglied beantragt werden. -Jedes Feld berechtigt zu einer unbegrenzten Anzahl von Fahrten auf dem Streckennetz des jeweiligen Bahn- oder Schifffahrtsunternehmens an einem Tag und dem darauffolgenden Tag. -{{% /expander %}} - -{{% expander "Was bedeutet ein Feld auf dem FIP Freifahrtschein?" info "faq" %}} -Ein Feld berechtigt zu unbegrenzt vielen Fahrten auf dem Netz der jeweiligen Bahn oder Schifffahrtsgesellschaft innerhalb der Gültigkeitsdauer an dem eingetragenen und dem darauffolgenden Tag. -{{% /expander %}} - -{{% expander "Wie lange ist ein FIP Freifahrtschein gültig?" info "faq" %}} -Ein FIP Freifahrtschein ist ab Ausstellungsdatum drei Monate lang gültig. Innerhalb dieses Zeitraums können die enthaltenen Felder genutzt werden. -{{% /expander %}} - -{{% expander "Wie lange ist ein Feld gültig?" info "faq" %}} -Die Gültigkeit eines Feldes beginnt mit dem eingetragenen Datum und endet am folgenden Tag um Mitternacht (24:00 Uhr). -Somit ist jedes Feld für einen Zeitraum von zwei Tagen gültig. -Bei der Maximalanzahl von vier Feldern kannst du somit acht Tage unterwegs sein. -{{% /expander %}} - -{{% expander "Welche Bahngesellschaften akzeptieren FIP?" info "faq" %}} - -Über 30 europäische Bahngesellschaften sowie einige Schifffahrtsunternehmen nehmen am FIP-System teil. Eine Liste, welche Unternehmen dabei sind, findest du im FIP Guide in der [Liste der Betreibergesellschaften](operator). -Informationen für dein Reiseziel findest du auf unserer [Länderseite](country). - -{{% /expander %}} - -{{% expander "Gibt es Ausnahmen bei der Nutzung von FIP Freifahrtscheinen?" info "faq" %}} -Ja. Bei einigen Unternehmen sind keine FIP Freifahrtscheine nutzbar, bei anderen gelten diese nur für bestimmte Zugkategorien. - -Details zu den Regelungen der FIP-Mitglieder findest du auf den [Unterseiten der Betreiber](operator). - -{{% /expander %}} - -{{% expander "Benötige ich eine Reservierung, um Züge nutzen zu können?" info "faq" %}} - -Für viele Züge, meist Hochgeschwindigkeits- und Nachtzüge, ist eine Reservierung erforderlich. Eine Übersicht erhältst du auf der jeweiligen Seite des [Betreibers](operator). - -{{% /expander %}} +{{< faq >}} ## Wer steckt hinter dem FIP Guide? diff --git a/content/generalinformation/_index.en.md b/content/generalinformation/_index.en.md index 67634d980..2ecc2825c 100644 --- a/content/generalinformation/_index.en.md +++ b/content/generalinformation/_index.en.md @@ -157,113 +157,9 @@ FIP Coupons and national travel discounts of dependents are counted toward the e {{% /expander %}} -## FAQ - -{{% expander "What does FIP stand for?" info "faq" %}} - -FIP stands for _Groupement pour les facilités de circulation internationales du personnel des chemins de fer_. It is the association for international railway staff travel discounts. -Railway and shipping companies of the UIC (International Union of Railways) are affiliated with it. - -The proof of entitlement is the International Discount Card for Railway Staff, in short FIP Card or FIP-Card. - -{{% /expander %}} - -{{% expander "Who is entitled to FIP?" info "faq" %}} - -Generally, active and retired employees of FIP members are entitled. Family members can also be entitled under certain conditions. -After twelve months of employment, employees can apply for the FIP Card. -Please contact your HR department for application and use. - -{{% /expander %}} - -{{% expander "Does FIP also apply to dependents?" info "faq" %}} - -Depending on the agreement between FIP members, family members (children, partners) can also use FIP discounts. This is always mentioned on the respective [operator pages](operator). Discounts for children are also listed there. - -{{% /expander %}} - -{{% expander "What is the FIP Card?" info "faq" %}} -The FIP Card is the proof of entitlement for discounted travel with FIP members abroad. -It enables free or discounted travel with participating railway and shipping companies. -{{% /expander %}} - -{{% expander "Where do I get my FIP Card?" info "faq" %}} - -Contact your HR department. -Note that you generally only have a right to international travel discounts after twelve months of employment. - -{{% /expander %}} - -{{% expander "What discounts do I get through FIP?" info "faq" %}} - -With the FIP Card, you are entitled to use the transport services of the respective FIP member at discounted rates. -Different rules apply depending on the operator. You can find details on the [operator pages](operator). - -There are various types of discounts: - -1. **Discounted tickets:** With the FIP Card, you receive heavily discounted tickets (usually 50% off the flexible price or global fare). There are no quantity restrictions or application deadlines. -2. **Free travel with FIP Coupons:** With many FIP members, you can travel for free with an FIP Coupon. Per operator, one coupon with one to four fields can be ordered once per calendar year. - -{{% highlight tip %}} -FIP travel is not always the cheapest option. In some countries, savings fares are available that are cheaper. -{{% /highlight %}} -{{% /expander %}} - -{{% expander "Where can I get discounted tickets with the FIP Card?" info "faq" %}} -The purchase method differs depending on the operator, for example online, by phone, or at a travel center. -You can find a detailed overview sorted by FIP member [here](operator). -{{% /expander %}} - -{{% expander "What rules apply to FIP Coupons?" info "faq" %}} - -In one calendar year, you can apply for one FIP Coupon with one to four fields per FIP member. - -As a rule, a processing deadline applies when applying. - -{{% /expander %}} - -{{% expander "Where can I order FIP Coupons?" info "faq" %}} -The application for FIP Coupons is usually made through your railway company’s personnel service or travel center. Some companies also offer online portals. -{{% /expander %}} - -{{% expander "How many fields can I request for FIP Coupons?" info "faq" %}} -Depending on your needs, FIP Coupons with 1 to 4 fields per FIP member can be requested. -Each field entitles you to an unlimited number of journeys on the network of the respective railway or shipping company on the date entered and the following day. -{{% /expander %}} - -{{% expander "What does a field on an FIP Coupon mean?" info "faq" %}} -A field entitles you to unlimited journeys on the network of the respective railway or shipping company during the validity period on the date entered and the following day. -{{% /expander %}} - -{{% expander "How long is an FIP Coupon valid?" info "faq" %}} -An FIP Coupon is valid for three months from the date of issue. The fields contained within it can be used during this period. -{{% /expander %}} - -{{% expander "How long is a field valid?" info "faq" %}} -A field's validity begins on the date entered by the user and ends the following day at midnight (24:00). -Thus, each field is valid for a period of two days. -With the maximum of four fields, you can travel for eight days. -{{% /expander %}} - -{{% expander "Which railway companies accept FIP?" info "faq" %}} - -Over 30 European railway companies and some shipping companies participate in the FIP system. A list of which companies are involved can be found in the FIP Guide in the [list of operators](operator). -For information about your travel destination, see our [country page](country). - -{{% /expander %}} - -{{% expander "Are there exceptions when using FIP Coupons?" info "faq" %}} -Yes. With some companies, no FIP Coupons can be used, while with others they apply only to certain train categories. - -Details on FIP member rules can be found on the [operator pages](operator). - -{{% /expander %}} - -{{% expander "Do I need a reservation to use trains?" info "faq" %}} - -A reservation is required for many trains, mostly high-speed and night trains. You can find an overview on the respective [operator page](operator). - -{{% /expander %}} +jetzt kommt das FAQ +{{< faq >}} +Das war das FAQ ## Who is behind the FIP Guide? diff --git a/content/generalinformation/faq/_1.de.md b/content/generalinformation/faq/_1.de.md new file mode 100644 index 000000000..94be81b18 --- /dev/null +++ b/content/generalinformation/faq/_1.de.md @@ -0,0 +1,4 @@ +--- +title: "Erste FAQ" +--- +Text vom ersten FAQ \ No newline at end of file diff --git a/content/generalinformation/faq/_2.de.md b/content/generalinformation/faq/_2.de.md new file mode 100644 index 000000000..21ff8f790 --- /dev/null +++ b/content/generalinformation/faq/_2.de.md @@ -0,0 +1,4 @@ +--- +title: "Zweite FAQ" +--- +Text vom zweiten FAQ \ No newline at end of file diff --git a/layouts/partials/expander.html b/layouts/partials/expander.html new file mode 100644 index 000000000..aa0252729 --- /dev/null +++ b/layouts/partials/expander.html @@ -0,0 +1,17 @@ +{{ $iconMapping := dict "border" "share_location" "traincategory" "train" "info" "info" "faq" "help" }} + +
+ +
+ {{- partial "icon" (index $iconMapping .type) -}} + {{ .title }} +
+ {{ partial "icon" "keyboard_arrow_down" }} +
+ + + +
+ {{ .content }} +
+
diff --git a/layouts/shortcodes/expander.html b/layouts/shortcodes/expander.html index 63005d1d1..e18540697 100644 --- a/layouts/shortcodes/expander.html +++ b/layouts/shortcodes/expander.html @@ -1,17 +1,10 @@ -{{- $param := .Get 1 -}} -{{ $iconMapping := dict "border" "share_location" "traincategory" "train" "info" "info" }} +{{- $title := .Get 0 -}} +{{- $type := .Get 1 -}} +{{- $name := .Get 2 -}} - -
- -
- {{- partial "icon" (index $iconMapping $param) -}} - {{ (.Get 0) }} -
- {{- partial "icon" "keyboard_arrow_down" -}} -
- -
- {{ .Inner }} -
-
+{{ partial "expander" (dict +"title" $title +"type" $type +"name" $name +"content" .Inner +) }} diff --git a/layouts/shortcodes/faq.html b/layouts/shortcodes/faq.html new file mode 100644 index 000000000..bc8c4100a --- /dev/null +++ b/layouts/shortcodes/faq.html @@ -0,0 +1,7 @@ +{{ $gi := site.GetPage "section" "generalinformation" }} + +{{ $faq := where $gi.Pages ".File.Dir" "==" "generalinformation/faq/" }} + +{{ range sort $faq ".File.BaseFileName" }} + {{ partial "expander" (dict "title" .Title "type" "faq" "name" "faq" "content" .Content) }} +{{ end }} From 031e9e600139df820cfd33dcb5da153f4ffeb3fb Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Fri, 26 Dec 2025 19:46:00 +0100 Subject: [PATCH 2/7] feat: added structuredData for FAQ --- layouts/partials/structuredData.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/layouts/partials/structuredData.html b/layouts/partials/structuredData.html index 97e85f89e..faa2f20df 100644 --- a/layouts/partials/structuredData.html +++ b/layouts/partials/structuredData.html @@ -4,8 +4,13 @@ {{ $mainEntity = "Article" }} {{ else if eq .Page.Type "news" }} {{ $mainEntity = "NewsArticle" }} +{{ else if eq .Page.Type "generalinformation" }} + {{ $mainEntity = "FAQPage" }} {{ end }} +{{ $gi := site.GetPage "section" "generalinformation" }} +{{ $faq := where $gi.Pages ".File.Dir" "==" "generalinformation/faq/" }} + {{ $image := (partial "helper/contentImage" .).Permalink }}