diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 1575af79..fb938eb6 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -5,7 +5,6 @@ ## Checklist -- [ ] Changed the date in updatet content pages - [ ] Check the License of new pictures (non-commercial use without attribution) The content was modified in the following languages: diff --git a/archetypes/country.de.md b/archetypes/country.de.md index 656aa409..b065c74d 100644 --- a/archetypes/country.de.md +++ b/archetypes/country.de.md @@ -1,5 +1,4 @@ --- -date: '{{ .Date }}' draft: title: '' country: '' diff --git a/archetypes/country.en.md b/archetypes/country.en.md index 4f1d9cce..a8ee1d25 100644 --- a/archetypes/country.en.md +++ b/archetypes/country.en.md @@ -1,5 +1,4 @@ --- -date: '{{ .Date }}' draft: title: '' country: '' diff --git a/archetypes/default.md b/archetypes/default.md index 0d5eebd0..25d816c2 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,5 +1,4 @@ --- -date: '{{ .Date }}' draft: true title: '{{ replace .File.ContentBaseName "-" " " | title }}' --- diff --git a/archetypes/operator.de.md b/archetypes/operator.de.md index b53e6183..a6eea31f 100644 --- a/archetypes/operator.de.md +++ b/archetypes/operator.de.md @@ -1,5 +1,4 @@ --- -date: '{{ .Date }}' draft: title: '' country: diff --git a/archetypes/operator.en.md b/archetypes/operator.en.md index 2fd87dd7..a5f328b4 100644 --- a/archetypes/operator.en.md +++ b/archetypes/operator.en.md @@ -1,5 +1,4 @@ --- -date: '{{ .Date }}' draft: title: '' country: diff --git a/assets/sass/content.scss b/assets/sass/content.scss index bb91c06b..1bd2110c 100644 --- a/assets/sass/content.scss +++ b/assets/sass/content.scss @@ -2,6 +2,10 @@ font-size: 1.3rem; } +.updateDate > .material-symbols-rounded { + font-size: 1.5rem +} + code { font-size: inherit; font-weight: 700; diff --git a/content/country/belgium/index.de.md b/content/country/belgium/index.de.md index ba028969..41a1b6c4 100644 --- a/content/country/belgium/index.de.md +++ b/content/country/belgium/index.de.md @@ -1,5 +1,4 @@ --- -date: "2024-10-17" draft: false title: "Belgien" description: "Informationen über die FIP-Bedingungen für Belgien und für welche Betreiber Vergünstigungen genutzt werden können." diff --git a/content/country/belgium/index.en.md b/content/country/belgium/index.en.md index 64c91818..4fce18cb 100644 --- a/content/country/belgium/index.en.md +++ b/content/country/belgium/index.en.md @@ -1,5 +1,4 @@ --- -date: "2024-10-17" draft: false title: "Belgium" description: "Find out about the FIP conditions for Belgium and for which operators you can benefit from discounts." diff --git a/content/country/netherlands/index.de.md b/content/country/netherlands/index.de.md index 0f118a74..aa01db93 100644 --- a/content/country/netherlands/index.de.md +++ b/content/country/netherlands/index.de.md @@ -1,5 +1,4 @@ --- -date: "2024-10-17" draft: false title: "Niederlande" description: "Informationen über die FIP-Bedingungen für die Niederlande und für welche Betreiber Vergünstigungen genutzt werden können." diff --git a/content/country/netherlands/index.en.md b/content/country/netherlands/index.en.md index e82b19d3..97d480e1 100644 --- a/content/country/netherlands/index.en.md +++ b/content/country/netherlands/index.en.md @@ -1,5 +1,4 @@ --- -date: "2024-10-17" draft: false title: "Netherlands" description: "Find out about the FIP conditions for the nederlands and for which operators you can benefit from discounts." diff --git a/content/country/slovakia/index.de.md b/content/country/slovakia/index.de.md index 364b68e5..adf65a83 100644 --- a/content/country/slovakia/index.de.md +++ b/content/country/slovakia/index.de.md @@ -1,5 +1,4 @@ --- -date: "2024-10-17" draft: false title: "Slowakei" description: "Informationen über die FIP-Bedingungen für die Slowakei und für welche Betreiber Vergünstigungen genutzt werden können." diff --git a/content/country/slovakia/index.en.md b/content/country/slovakia/index.en.md index 17cb08a2..99da75ae 100644 --- a/content/country/slovakia/index.en.md +++ b/content/country/slovakia/index.en.md @@ -1,5 +1,4 @@ --- -date: "2024-10-17" draft: false title: "Slovakia" description: "Find out about the FIP conditions for slovakia and for which operators you can benefit from discounts." diff --git a/content/generalInformation.de.md b/content/generalInformation.de.md index d9a01387..abd1bd9f 100644 --- a/content/generalInformation.de.md +++ b/content/generalInformation.de.md @@ -1,5 +1,4 @@ --- -date: "2025-05-01" title: "Übergreifende Infos" description: "Informationen über die allgemeinen Hinweise zu FIP und wie FIP in Anspruch genommen werden kann." --- diff --git a/content/generalInformation.en.md b/content/generalInformation.en.md index 3ea6d380..757832c3 100644 --- a/content/generalInformation.en.md +++ b/content/generalInformation.en.md @@ -1,5 +1,4 @@ --- -date: "2025-05-01" title: "General Information" description: "Find out about the general information on FIP and how you can use FIP." --- diff --git a/content/operator/eurostar/index.de.md b/content/operator/eurostar/index.de.md index 592945b1..c974a258 100644 --- a/content/operator/eurostar/index.de.md +++ b/content/operator/eurostar/index.de.md @@ -1,5 +1,4 @@ --- -date: "2025-05-01" draft: false title: "Eurostar" description: "Informationen über die FIP-Bedingungen bei Eurostar." diff --git a/content/operator/eurostar/index.en.md b/content/operator/eurostar/index.en.md index dec35fd8..c4422e20 100644 --- a/content/operator/eurostar/index.en.md +++ b/content/operator/eurostar/index.en.md @@ -1,5 +1,4 @@ --- -date: "2025-05-01" draft: false title: "Eurostar" description: "Information about FIP conditions for Eurostar." diff --git a/content/operator/ns/index.de.md b/content/operator/ns/index.de.md index ff6ed20b..0cb92021 100644 --- a/content/operator/ns/index.de.md +++ b/content/operator/ns/index.de.md @@ -1,5 +1,4 @@ --- -date: "2024-10-17" draft: false title: "NS" description: "Informationen über die FIP-Bedingungen bei NS." diff --git a/content/operator/ns/index.en.md b/content/operator/ns/index.en.md index 06900757..2a6afa1c 100644 --- a/content/operator/ns/index.en.md +++ b/content/operator/ns/index.en.md @@ -1,5 +1,4 @@ --- -date: "2024-10-17" draft: false title: "NS" description: "Find out about the FIP conditions at NS." diff --git a/content/operator/sncb/index.de.md b/content/operator/sncb/index.de.md index 7a4cb684..8bbe1c3f 100644 --- a/content/operator/sncb/index.de.md +++ b/content/operator/sncb/index.de.md @@ -1,5 +1,4 @@ --- -date: "2025-03-25" draft: false title: "SNCB" description: "Informationen über die FIP-Bedingungen bei SNCB." diff --git a/content/operator/sncb/index.en.md b/content/operator/sncb/index.en.md index da7158a1..5a3d1332 100644 --- a/content/operator/sncb/index.en.md +++ b/content/operator/sncb/index.en.md @@ -1,5 +1,4 @@ --- -date: "2025-02-15" draft: false title: "SNCB" description: "Find out about the FIP conditions at SNCB." diff --git a/content/operator/zsr/index.de.md b/content/operator/zsr/index.de.md index 3ff3e814..a9d7f58f 100644 --- a/content/operator/zsr/index.de.md +++ b/content/operator/zsr/index.de.md @@ -1,5 +1,4 @@ --- -date: "2025-04-13" draft: false title: "ZSR / ZSSK" description: "Informationen über die FIP-Bedingungen bei ZSR / ZSSK." diff --git a/content/operator/zsr/index.en.md b/content/operator/zsr/index.en.md index 2e52fa25..174d75c8 100644 --- a/content/operator/zsr/index.en.md +++ b/content/operator/zsr/index.en.md @@ -1,5 +1,4 @@ --- -date: "2025-04-13" draft: false title: "ZSR / ZSSK" description: "Find out about the FIP conditions at ZSR / ZSSK." diff --git a/hugo.yaml b/hugo.yaml index 01f4143a..104b5b79 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -2,6 +2,7 @@ baseURL: 'https://www.fipguide.org/' title: 'FIP Guide' enableRobotsTXT: true +enableGitInfo: true defaultContentLanguage: "en" defaultContentLanguageInSubdir: true diff --git a/layouts/partials/icon.html b/layouts/partials/icon.html index f1ead862..5da63b8f 100644 --- a/layouts/partials/icon.html +++ b/layouts/partials/icon.html @@ -1,2 +1,2 @@ - + {{- /* Needed, otherwise links break: https://github.com/fipguide/fipguide.github.io/issues/116 */ -}} diff --git a/layouts/partials/updateDate.html b/layouts/partials/updateDate.html index 03bc8f69..9b43c120 100644 --- a/layouts/partials/updateDate.html +++ b/layouts/partials/updateDate.html @@ -2,10 +2,26 @@ {{ $dateHuman := .Date | time.Format ":date_long" }} {{ if .Date }} -
+
{{ if ne .Type "news" }} {{ T "updateDate"}}: {{ end }}
+{{ else if .GitInfo }} + {{ $dateMachine := .GitInfo.AuthorDate | time.Format "2006-01-02T15:04:05-07:00" }} + {{ $dateHuman := .GitInfo.AuthorDate | time.Format ":date_long" }} + {{ $href := print .Site.Params.gitHubUrl "/commits/" .GitInfo.Hash "/content" .Path "/index." .Language ".md" }} + + {{ T "updateDate"}}: + + {{- partial "icon" "arrow_outward" -}} + {{ end }}