diff --git a/assets/sass/styles.scss b/assets/sass/styles.scss index 00e8e01b..2309ff85 100644 --- a/assets/sass/styles.scss +++ b/assets/sass/styles.scss @@ -16,10 +16,20 @@ header { a:not(.m-teaser) { color: var(--link-default); + transition: fill 0.3s ease; &:hover, &:focus { color: var(--link-hovered); + + svg { + fill: var(--link-hovered); + } + } + + svg { + fill: var(--link-default); + transition: fill 0.3s ease; } } diff --git a/content/operator/sncb/index.de.md b/content/operator/sncb/index.de.md index 27f70588..f2f30f5c 100644 --- a/content/operator/sncb/index.de.md +++ b/content/operator/sncb/index.de.md @@ -1,5 +1,5 @@ --- -date: "2025-02-15" +date: "2025-03-25" draft: false title: "SNCB" country: @@ -156,7 +156,7 @@ Kinder bis 5 Jahren reisen kostenlos in den Zügen der SNCB. Kinder im Alter von ### Flughafen Brüssel Zaventem -Auf Verbindungen von und zum Flughafen Brüssel Zaventem muss für den FIP Freifahrtschein ein Zuschlag gezahlt werden. Dieser beträgt aktuell 6,70 Euro (vgl. [Info der SNCB](https://www.belgiantrain.be/de/tickets-and-railcards/airports/brussels-airport)) und muss auch gezahlt werden, wenn der Hinweise *No Supplement Necessary* angegeben ist. Bei FIP 50 Tickets ist dieser bereits im Preis inbegriffen. [^1] +Auf Verbindungen von und zum Flughafen Brüssel Zaventem muss für den FIP Freifahrtschein ein Zuschlag gezahlt werden. Dieser beträgt aktuell 6,90 Euro (vgl. [Info der SNCB](https://www.belgiantrain.be/de/tickets-and-railcards/airports/brussels-airport)) und muss auch gezahlt werden, wenn der Hinweise *No Supplement Necessary* angegeben ist. Bei FIP 50 Tickets ist dieser bereits im Preis inbegriffen. [^1] ## Erfahrungen diff --git a/layouts/partials/_ico.html b/layouts/partials/_ico.html index 87a9aa04..bbdfe3f5 100644 --- a/layouts/partials/_ico.html +++ b/layouts/partials/_ico.html @@ -4,33 +4,28 @@ {{ $class := "" }} {{ $href := "" }} {{ $title := "" }} +{{ $size := "" }} {{ if reflect.IsMap . }} {{ $item = .icon }} {{ $theme = .theme }} {{ $class = .class }} - {{/* {{ warnf "themeInsideMap: %s" $theme }} */}} {{ $title = .title }} + {{ $size = .size }} {{ else }} {{ $item = . }} {{ end }} {{ $theme := $theme | default "default" }} +{{ $size := $size | default "24" }} {{ $classes := "" }} -{{/* {{ warnf "themeAfterLoop: %s" $theme }} */}} {{ $file := "" }} -{{/* ?? Check data type ? See https://www.brijumaquio.com/get-data-type-in-hugo-framework */}} {{ if eq (printf "%T" $item) "*resources.resourceAdapter" }} {{ $file = $item }} {{ else if eq (printf "%T" $item) "string" }} {{ $folder := $theme }} - {{/* {{ warnf "themeToFolder: %s" $theme }} */}} - {{/* {{ warnf "folderFromTheme : %s" $folder }} */}} {{ $classes = printf "%v%v%v%v%v" $theme " ico ico-" $item " " $class }} {{ $path := printf "svg/%s/%s.svg" $folder $item }} {{ $file = resources.Get $path }} - {{/* {{ warnf "Loading icon from ico.html shortcode: %s" $item }} */}} - {{/* {{ warnf "theme: %s" $theme }} */}} {{ else }} - {{/* Get the filename, remove extension, add custom classes */}} {{ $classes = print (replace (path.Base $item) ".svg" "" | anchorize) " ico " }} {{ $file = resources.Get $item }} {{ end }} @@ -42,8 +37,8 @@ {{ $pattern := `[\s\S]*?([\s\S]*)([\s\S]*)?([\s\S]*)([\s\S]*)?` }} {{ $replaceWith := "" }} {{ with $title }} - {{ $replaceWith = printf `` $classes . }} + {{ $replaceWith = printf `` $classes $size $size . }} {{ else }} - {{ $replaceWith = printf `` $classes }} + {{ $replaceWith = printf `` $classes $size $size }} {{ end }} -{{- return ($content | replaceRE $pattern $replaceWith | safeHTML) -}} \ No newline at end of file +{{- return ($content | replaceRE $pattern $replaceWith | safeHTML) -}} diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index ac0c6177..63a021a5 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -1,6 +1,4 @@ -{{ $menuicon := resources.Get "images/menu.svg" }} -{{ $expandicon := resources.Get "images/expand-more.svg" }} -{{ $closeicon := resources.Get "images/close.svg" }} + {{ $logo := resources.Get "images/logo.svg" }}
diff --git a/layouts/partials/sidemenu.html b/layouts/partials/sidemenu.html index ca1105b9..1f2c8e63 100644 --- a/layouts/partials/sidemenu.html +++ b/layouts/partials/sidemenu.html @@ -14,7 +14,7 @@ {{ if eq .Page.Type "country" }}
  • - {{ partial "ico" (dict "icon" "arrow_back" ) }} + {{ partial "ico" (dict "icon" "arrow_back" "width" "1000px") }} {{ T "toc-backlink"}}: {{ .LinkTitle }}
  • @@ -64,8 +64,8 @@ {{ end }}
    - {{ partial "ico" (dict "icon" "edit_square" ) }} + {{ partial "ico" (dict "icon" "edit_square" ) }} {{ T "editPage"}}