Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions assets/sass/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,8 @@ details > summary {
cursor: pointer;
}

.a-operator-logo {
height: 1.3em;
width: auto;
aspect-ratio: 120 / 50;
border-radius: var(--border-radius-m);
dd {
margin-inline-start: 0;
}

.o-link__external:not(.o-last-updated)::after {
Expand Down
File renamed without changes.
File renamed without changes.
240 changes: 240 additions & 0 deletions content/generalinformation/_index.de.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ description: "Find out about the general information on FIP and how you can use

Here you will find comprehensive information about the FIP Guide.

## What is FIP?
{{% faq "What is FIP?" %}}

FIP stands for _Groupement pour les facilités de circulation internationales du personnel des chemins de fer_. It is the association for international travel concessions for railway personnel.
With this international discount card for railway personnel, employees can use trains, ships, and buses in Europe at reduced rates.
This project provides information and usage instructions for FIP as well as specifics about the participating railway companies.

## What discounts do I get through FIP?
{{% /faq %}}

{{% faq "What discounts do I get through FIP?" %}}

There are two ways to use it:

Expand All @@ -20,11 +22,15 @@ There are two ways to use it:

You can find the exact regulations on the subpages of the [operators]({{< ref "operator" >}}).

## How can I take advantage of FIP?
{{% /faq %}}

{{% faq "How can I take advantage of FIP?" %}}

Employees of a FIP member are eligible to use FIP facilities after 12 months of employment.
Please contact your HR department for application and usage.

{{% /faq %}}

## Who is behind the FIP Guide?

We are a dedicated team of railway employees who regularly use FIP ourselves.
Expand Down
Binary file added content/generalinformation/borders.drawio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 0 additions & 36 deletions content/generalinformation/index.de.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions layouts/generalinformation/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{ define "main" }}
<article class="o-container o-single">
<div class="o-single__content" data-pagefind-body>
<div class="o-single__container">
<div class="o-single__content-header">
<div class="o-single__content-header-title">
<h1 data-pagefind-meta="title">{{ .Title }}</h1>
</div>
{{ partial "updateDate.html" . }}
</div>
<div data-pagefind-weight="2.5">
{{ partial "content" . }}
</div>
</div>
{{ partial "image" (partial "helper/contentImage" . ) }}
</div>
</article>
{{ end }}
49 changes: 36 additions & 13 deletions layouts/partials/structuredData.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
{{ $dateMachine := partial "helper/dateMachine" . }}

{{ $pageType := "WebPage" }}
{{ if eq .Page.Type "generalinformation" }}
{{ $pageType = "FAQPage" }}
{{ end }}

{{ $mainEntity := "" }}
{{ if (or (eq .Page.Type "country") (eq .Page.Type "operator")) }}
{{ $mainEntity = "Article" }}
{{ else if eq .Page.Type "news" }}
{{ $mainEntity = "NewsArticle" }}
{{ else if eq .Page.Type "generalinformation" }}
{{ $mainEntity = "Question" }}
{{ end }}

{{ $image := (partial "helper/contentImage" .).Permalink }}
Expand All @@ -17,7 +25,7 @@
"url": {{ page.Site.BaseURL }}
},
{
"@type": "WebPage",
"@type": "{{ $pageType }}",
"url": {{ .Permalink }},
"name": "{{ .Title }}",
"publisher": {
Expand Down Expand Up @@ -51,18 +59,33 @@
},
{{- end }}
{{- if $mainEntity }}
"mainEntity": {
"@type": "{{ $mainEntity }}",
"headline": "{{ page.Title }}",
"image": {{ $image }},
"dateModified": {{ $dateMachine }},
"author": {
"@type":"Organization",
"name": "FIP Guide",
"url": "https://www.fipguide.org/",
"email": "[email protected]"
}
},
{{- if eq $mainEntity "Question" }}
"mainEntity": [
{{- range $index, $faqs := .Params.faqs }}
{
"@type": "{{ $mainEntity }}",
"name": "{{ $faqs.question }}",
"acceptedAnswer": {
"@type": "Answer",
"text": "{{ $faqs.answer }}"
}
}{{ if lt (add $index 1) (len $faqs) }},{{ end }}
{{- end }}
],
{{- else }}
"mainEntity": {
"@type": "{{ $mainEntity }}",
"headline": "{{ page.Title }}",
"image": {{ $image }},
"dateModified": {{ $dateMachine }},
"author": {
"@type":"Organization",
"name": "FIP Guide",
"url": "https://www.fipguide.org/",
"email": "[email protected]"
}
},
{{- end }}
{{- end }}
"maintainer": {
"@type": "Organization",
Expand Down
11 changes: 11 additions & 0 deletions layouts/shortcodes/faq.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<dl>
<dt>
<h3>{{ .Get 0 }}</h3>
</dt>
<dd>
<div>
{{- .Inner -}}
</div>
</dd>
</dl>
<hr class="o-divider" />
Loading