From 412d4ef4725112f3d785841f4c918e8d58f03570 Mon Sep 17 00:00:00 2001 From: MoritzWeber Date: Mon, 25 May 2026 16:22:09 +0200 Subject: [PATCH] feat: Add columns / column shortcodes --- assets/sass/styles.scss | 14 ++++++++++++++ content/operator/cd/index.de.md | 20 ++++++++------------ content/operator/cd/index.en.md | 20 ++++++++------------ content/operator/cd/index.fr.md | 20 ++++++++------------ layouts/shortcodes/column.html | 3 +++ layouts/shortcodes/columns.html | 1 + 6 files changed, 42 insertions(+), 36 deletions(-) create mode 100644 layouts/shortcodes/column.html create mode 100644 layouts/shortcodes/columns.html diff --git a/assets/sass/styles.scss b/assets/sass/styles.scss index be26ecffb..5dc3e127e 100644 --- a/assets/sass/styles.scss +++ b/assets/sass/styles.scss @@ -284,6 +284,20 @@ figure { } } +.o-columns { + display: flex; + gap: 1rem; + align-items: flex-start; + + @media (max-width: #{$breakpoint-md}) { + flex-direction: column; + + > .o-columns__column { + flex-basis: 100% !important; + } + } +} + .o-single { padding: 2rem; background-color: var(--bg-default); diff --git a/content/operator/cd/index.de.md b/content/operator/cd/index.de.md index e56c3029d..da579cf9c 100644 --- a/content/operator/cd/index.de.md +++ b/content/operator/cd/index.de.md @@ -261,18 +261,14 @@ Auf einigen Routen und Regionen gelten keine FIP Vergünstigungen, obwohl die Ve Für eine Übersicht der Gültigkeit kann die Übersichtskarte hier verwendet werden. Ausführlichere Informationen finden sich in der Detailkarte und den konkreten Regelungen in den folgenden Abschnitten zu [ČD Kommerzielle Verbindungen (zuschlagspflichtig)](#čd-kommerzielle-verbindungen-zuschlagspflichtig) und [Verbindungen der ČD ohne FIP](#verbindungen-der-čd-ohne-fip). -
-
- FIP Gültigkeitskarte Überblick für Tschechien - -
Überblick FIP Gültigkeitskarte (Vollbild) für Tschechien (© Petr Duda)
-
-
- FIP Gültigkeitskarte Detail für Tschechien - -
Detail FIP Gültigkeitskarte (Vollbild) für Tschechien (© Petr Duda)
-
-
+{{% columns %}} +{{% column width="50%" %}} +![[Überblick FIP Gültigkeitskarte (Vollbild)](/de/operator/cd/cd-fip-map-overview-26.webp) für Tschechien (© Petr Duda)](cd-fip-map-overview-26.webp) +{{% /column %}} +{{% column width="50%" %}} +![[Detail FIP Gültigkeitskarte (Vollbild)](/de/operator/cd/cd-fip-map-detail-26.webp) für Tschechien (© Petr Duda)](cd-fip-map-detail-26.webp) +{{% /column %}} +{{% /columns %}} ### ČD Kommerzielle Verbindungen (zuschlagspflichtig) diff --git a/content/operator/cd/index.en.md b/content/operator/cd/index.en.md index 38f38d4ab..df29fdfa1 100644 --- a/content/operator/cd/index.en.md +++ b/content/operator/cd/index.en.md @@ -261,18 +261,14 @@ On some routes and in some regions, FIP benefits are not valid, even if the serv For an overview of validity, the overview map can be used here. More detailed information can be found in the detailed map and the specific rules in the following sections on [ČD Commercial Services (Surcharge Required)](#čd-commercial-services-surcharge-required) and [ČD Services Without FIP](#čd-services-without-fip). -
-
- FIP validity map overview for Czechia - -
Overview FIP validity map (full view) for Czechia (© Petr Duda)
-
-
- FIP validity map detail for Czechia - -
Detailed FIP validity map (full view) for Czechia (© Petr Duda)
-
-
+{{% columns %}} +{{% column width="50%" %}} +![[Overview FIP validity map (full view)](/en/operator/cd/cd-fip-map-overview-26.webp) for Czechia (© Petr Duda)](cd-fip-map-overview-26.webp) +{{% /column %}} +{{% column width="50%" %}} +![[Detailed FIP validity map (full view)](/en/operator/cd/cd-fip-map-detail-26.webp) for Czechia (© Petr Duda)](cd-fip-map-detail-26.webp) +{{% /column %}} +{{% /columns %}} ### ČD Commercial Services (Surcharge Required) diff --git a/content/operator/cd/index.fr.md b/content/operator/cd/index.fr.md index ff5853f9c..629ef2e69 100644 --- a/content/operator/cd/index.fr.md +++ b/content/operator/cd/index.fr.md @@ -261,18 +261,14 @@ Sur certaines lignes et dans certaines régions, les avantages FIP ne sont pas v Pour un aperçu de la validité, la carte de vue d’ensemble peut être consultée ici. Des informations plus détaillées sont disponibles dans la carte détaillée et les règles spécifiques dans les sections suivantes sur les [Liaisons commerciales ČD (supplément obligatoire)](#liaisons-commerciales-čd-supplément-obligatoire) et les [Services ČD sans FIP](#services-čd-sans-fip). -
-
- Carte de validité FIP vue d’ensemble pour la Tchéquie - -
Carte de validité FIP vue d’ensemble (vue complète) pour la Tchéquie (© Petr Duda)
-
-
- Carte de validité FIP détaillée pour la Tchéquie - -
Carte de validité FIP détaillée (vue complète) pour la Tchéquie (© Petr Duda)
-
-
+{{% columns %}} +{{% column width="50%" %}} +![[Carte de validité FIP vue d’ensemble (vue complète)](/fr/operator/cd/cd-fip-map-overview-26.webp) pour la Tchéquie (© Petr Duda)](cd-fip-map-overview-26.webp) +{{% /column %}} +{{% column width="50%" %}} +![[Carte de validité FIP détaillée (vue complète)](/fr/operator/cd/cd-fip-map-detail-26.webp) pour la Tchéquie (© Petr Duda)](cd-fip-map-detail-26.webp) +{{% /column %}} +{{% /columns %}} ### Liaisons commerciales ČD (supplément obligatoire) diff --git a/layouts/shortcodes/column.html b/layouts/shortcodes/column.html new file mode 100644 index 000000000..96c9be975 --- /dev/null +++ b/layouts/shortcodes/column.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
diff --git a/layouts/shortcodes/columns.html b/layouts/shortcodes/columns.html new file mode 100644 index 000000000..30674970e --- /dev/null +++ b/layouts/shortcodes/columns.html @@ -0,0 +1 @@ +
{{ .Inner }}