Skip to content

Commit cd8977b

Browse files
committed
prettier
1 parent b90931d commit cd8977b

File tree

7 files changed

+36
-38
lines changed

7 files changed

+36
-38
lines changed

content/operator/bdz/index.de.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ operator: "bdz"
88
type: "operator"
99
booking:
1010
- "bdz-ticket-office"
11-
1211
---
1312

1413
Die Balgarski Darschawni Schelesnizi (BDŽ) ist die staatliche Eisenbahngesellschaft von Bulgarien und betreibt derzeit fast alle Verbindungen im Personenverkehr auf dem bulgarischen Schienennetz.

content/operator/cd/index.de.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Informationen zu den FIP-Bedingungen bei der České dráhy (ČD).
55
country:
66
- "czechia"
77
operator: "cd"
8-
booking:
8+
booking:
99
- "cd-website"
1010
- "db-website-fip-db"
1111
- "db-website-fip-international"

content/operator/ns/index.de.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ booking:
1111
- "db-website-fip-international"
1212
- "ns-ticket-office"
1313
- "db-ticket-office"
14-
1514
---
1615

1716
Die Nederlandse Spoorwegen (NS) ist die staatliche Eisenbahngesellschaft der Niederlande und betreibt den Großteil des Personenverkehrs auf dem niederländischen Schienennetz.

content/operator/oebb/index.de.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ country:
66
- "austria"
77
- "liechtenstein"
88
operator: "oebb"
9-
booking:
9+
booking:
1010
- "oebb-website"
1111
- "db-website"
1212
- "db-website-fip-db"

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
id="content"
1414
class="{{ if .IsHome }}o-startpage{{ end }}{{ if eq .Page.Type "news" }}
1515
o-newspage
16-
{{ end }}{{ if eq .Page.Type "booking" }} o-bookingpage{{ end }}"
16+
{{ end }}{{ if eq .Page.Type "booking" }}o-bookingpage{{ end }}"
1717
>
1818
<div class="o-container">
1919
{{ if not .IsHome }}

layouts/booking/single.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<article data-pagefind-ignore class="o-single o-single--with-sidemenu">
33
<aside id="aside" class="o-aside">
44
<div class="o-single__container">
5-
{{ partial "related" (dict "index" "booking" "title" (T "related.booking") "page" . "identifier" "booking") "pageType" "booking"}}
5+
{{ partial "related" (dict "index" "booking" "title" (T "related.booking") "page" . "identifier" "booking") "pageType" "booking" }}
66
<hr aria-hidden="true" />
77
{{ partial "link"
8-
(dict
9-
"Destination" (print .Site.Params.githubDevUrl "blob/main/content" .Path "/index." .Language ".md")
10-
"Text" ((print (partial "icon" "edit_square") (T "editPage")) | .Page.RenderString)
11-
)
8+
(dict
9+
"Destination" (print .Site.Params.githubDevUrl "blob/main/content" .Path "/index." .Language ".md")
10+
"Text" ((print (partial "icon" "edit_square") (T "editPage")) | .Page.RenderString)
11+
)
1212
}}
1313
</div>
1414
</aside>

layouts/partials/related.html

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,35 @@
88
{{ end }}
99

1010
{{ if gt (len $related) 0 }}
11-
<h3 id="o-related__title-{{ .identifier }}">{{ .title }}</h3>
12-
<ul
13-
class="o-related__list"
14-
aria-labelledby="o-related__title-{{ .identifier }}"
15-
>
16-
{{ range $related }}
17-
<li class="o-related__item">
18-
{{ $text := .LinkTitle }}
19-
{{ if eq .Page.Type "news" }}
20-
{{ $text = print (partial "icon" "newspaper") $text }}
21-
{{ else if or (eq .Page.Type "operator") (eq .Page.Type "booking") }}
22-
{{ $text = print (partial "operator-logo" (dict "operator" .File.ContentBaseName)) $text }}
23-
{{ else if eq .Page.Type "country" }}
24-
{{ $text = print (partial "flag" (dict "country" .File.ContentBaseName)) $text }}
25-
{{ end }}
11+
<h3 id="o-related__title-{{ .identifier }}">{{ .title }}</h3>
12+
<ul
13+
class="o-related__list"
14+
aria-labelledby="o-related__title-{{ .identifier }}"
15+
>
16+
{{ range $related }}
17+
<li class="o-related__item">
18+
{{ $text := .LinkTitle }}
19+
{{ if eq .Page.Type "news" }}
20+
{{ $text = print (partial "icon" "newspaper") $text }}
21+
{{ else if or (eq .Page.Type "operator") (eq .Page.Type "booking") }}
22+
{{ $text = print (partial "operator-logo" (dict "operator" .File.ContentBaseName)) $text }}
23+
{{ else if eq .Page.Type "country" }}
24+
{{ $text = print (partial "flag" (dict "country" .File.ContentBaseName)) $text }}
25+
{{ end }}
2626

27-
{{ partial "internal_link" (
28-
dict
29-
"Destination" .RelPermalink
30-
"Text" ($text | .Page.RenderString)
31-
)
32-
}}
27+
{{ partial "internal_link" (
28+
dict
29+
"Destination" .RelPermalink
30+
"Text" ($text | .Page.RenderString)
31+
)
32+
}}
3333

34-
{{ if eq .Page.Type "news" }}
35-
<span class="o-related__date"
36-
>{{ .Date | time.Format ":date_long" }}</span
37-
>
34+
{{ if eq .Page.Type "news" }}
35+
<span class="o-related__date"
36+
>{{ .Date | time.Format ":date_long" }}</span
37+
>
38+
{{ end }}
39+
</li>
3840
{{ end }}
39-
</li>
40-
{{ end }}
41-
</ul>
41+
</ul>
4242
{{ end }}

0 commit comments

Comments
 (0)