Skip to content

Commit b4a95a1

Browse files
authored
Merge pull request #31 from fipguide/feat/lennart
Feat/lennart
2 parents b2b0d55 + 8b900ab commit b4a95a1

File tree

5 files changed

+21
-18
lines changed

5 files changed

+21
-18
lines changed

assets/sass/styles.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,20 @@ header {
1616

1717
a:not(.m-teaser) {
1818
color: var(--link-default);
19+
transition: fill 0.3s ease;
1920

2021
&:hover,
2122
&:focus {
2223
color: var(--link-hovered);
24+
25+
svg {
26+
fill: var(--link-hovered);
27+
}
28+
}
29+
30+
svg {
31+
fill: var(--link-default);
32+
transition: fill 0.3s ease;
2333
}
2434
}
2535

content/operator/sncb/index.de.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
date: "2025-02-15"
2+
date: "2025-03-25"
33
draft: false
44
title: "SNCB"
55
country:
@@ -156,7 +156,7 @@ Kinder bis 5 Jahren reisen kostenlos in den Zügen der SNCB. Kinder im Alter von
156156

157157
### Flughafen Brüssel Zaventem
158158

159-
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]
159+
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]
160160

161161
## Erfahrungen
162162

layouts/partials/_ico.html

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,28 @@
44
{{ $class := "" }}
55
{{ $href := "" }}
66
{{ $title := "" }}
7+
{{ $size := "" }}
78
{{ if reflect.IsMap . }}
89
{{ $item = .icon }}
910
{{ $theme = .theme }}
1011
{{ $class = .class }}
11-
{{/* {{ warnf "themeInsideMap: %s" $theme }} */}}
1212
{{ $title = .title }}
13+
{{ $size = .size }}
1314
{{ else }}
1415
{{ $item = . }}
1516
{{ end }}
1617
{{ $theme := $theme | default "default" }}
18+
{{ $size := $size | default "24" }}
1719
{{ $classes := "" }}
18-
{{/* {{ warnf "themeAfterLoop: %s" $theme }} */}}
1920
{{ $file := "" }}
20-
{{/* ?? Check data type ? See https://www.brijumaquio.com/get-data-type-in-hugo-framework */}}
2121
{{ if eq (printf "%T" $item) "*resources.resourceAdapter" }}
2222
{{ $file = $item }}
2323
{{ else if eq (printf "%T" $item) "string" }}
2424
{{ $folder := $theme }}
25-
{{/* {{ warnf "themeToFolder: %s" $theme }} */}}
26-
{{/* {{ warnf "folderFromTheme : %s" $folder }} */}}
2725
{{ $classes = printf "%v%v%v%v%v" $theme " ico ico-" $item " " $class }}
2826
{{ $path := printf "svg/%s/%s.svg" $folder $item }}
2927
{{ $file = resources.Get $path }}
30-
{{/* {{ warnf "Loading icon from ico.html shortcode: %s" $item }} */}}
31-
{{/* {{ warnf "theme: %s" $theme }} */}}
3228
{{ else }}
33-
{{/* Get the filename, remove extension, add custom classes */}}
3429
{{ $classes = print (replace (path.Base $item) ".svg" "" | anchorize) " ico " }}
3530
{{ $file = resources.Get $item }}
3631
{{ end }}
@@ -42,8 +37,8 @@
4237
{{ $pattern := `[\s\S]*?<svg([\s\S]*)?>([\s\S]*)(<title>[\s\S]*</title>)?([\s\S]*)</svg>([\s\S]*)?` }}
4338
{{ $replaceWith := "" }}
4439
{{ with $title }}
45-
{{ $replaceWith = printf `<svg aria-hidden="true" class="%s" ${1}>${2}<title>%s</title>${4}</svg>` $classes . }}
40+
{{ $replaceWith = printf `<svg aria-hidden="true" class="%s" width="%s" height="%s" ${1}>${2}<title>%s</title>${4}</svg>` $classes $size $size . }}
4641
{{ else }}
47-
{{ $replaceWith = printf `<svg aria-hidden="true" class="%s" ${1}>${2}${3}${4}</svg>` $classes }}
42+
{{ $replaceWith = printf `<svg aria-hidden="true" class="%s" width="%s" height="%s" ${1}>${2}${3}${4}</svg>` $classes $size $size }}
4843
{{ end }}
49-
{{- return ($content | replaceRE $pattern $replaceWith | safeHTML) -}}
44+
{{- return ($content | replaceRE $pattern $replaceWith | safeHTML) -}}

layouts/partials/menu.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
{{ $menuicon := resources.Get "images/menu.svg" }}
2-
{{ $expandicon := resources.Get "images/expand-more.svg" }}
3-
{{ $closeicon := resources.Get "images/close.svg" }}
1+
42
{{ $logo := resources.Get "images/logo.svg" }}
53
<div class="container o-header__wrapper">
64
<a id="skip-link" class="o-header__skip-link" href="#content">zum Inhalt springen</a>

layouts/partials/sidemenu.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{{ if eq .Page.Type "country" }}
1515
<li>
1616
<a href="{{ .RelPermalink }}">
17-
{{ partial "ico" (dict "icon" "arrow_back" ) }}
17+
{{ partial "ico" (dict "icon" "arrow_back" "width" "1000px") }}
1818
<span>{{ T "toc-backlink"}}: {{ .LinkTitle }}</span>
1919
</a>
2020
</li>
@@ -64,8 +64,8 @@ <h3 id="related">{{ T "_operator__nearby"}}</h3>
6464
</ul>
6565
{{ end }}
6666
<hr>
67-
{{ partial "ico" (dict "icon" "edit_square" ) }}
6867
<a href="{{ .Site.Params.githubDevUrl }}blob/main/content{{ .Path }}/index.{{ .Language }}.md" target="_blank" rel="noopener noreferrer">
68+
{{ partial "ico" (dict "icon" "edit_square" ) }}
6969
{{ T "editPage"}}
7070
</a>
7171
</div>

0 commit comments

Comments
 (0)