+
{{- partial "icon" (index $iconMapping $param) -}}
{{ (.Get 0) }}
diff --git a/layouts/shortcodes/highlight.html b/layouts/shortcodes/highlight.html
index b8b5f402..3959aaeb 100644
--- a/layouts/shortcodes/highlight.html
+++ b/layouts/shortcodes/highlight.html
@@ -1,5 +1,10 @@
{{- $param := .Get 0 -}}
-{{ $iconMapping := dict "important" "error" "inofficial" "warning" "tip" "lightbulb_2" }}
+{{ $iconMapping := dict
+ "important" "campaign"
+ "inofficial" "warning"
+ "tip" "lightbulb_2"
+ "confusion" "question_exchange"
+}}
diff --git a/layouts/shortcodes/train-category.html b/layouts/shortcodes/train-category.html
new file mode 100644
index 00000000..48022f4f
--- /dev/null
+++ b/layouts/shortcodes/train-category.html
@@ -0,0 +1,14 @@
+{{- $data := dict
+ "title" (.Get "title")
+ "type" (default "regional" (.Get "type"))
+ "fip_accepted" (default true (.Get "fip_accepted"))
+ "reservation_required" (default false (.Get "reservation_required"))
+ "reservation_possible" (default false (.Get "reservation_possible"))
+ "risk_of_confusion" (strings.Contains .Inner "m-text-highlight--confusion")
+ "important_info" (strings.Contains .Inner "m-text-highlight--important")
+ "route_overview_url" (.Get "route_overview_url")
+ "additional_information_url" (.Get "additional_information_url")
+ "content" (.Inner | .Page.RenderString)
+-}}
+
+{{- partial "train-category" $data -}}
diff --git a/package-lock.json b/package-lock.json
index 44749d9d..22cfd218 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,7 +9,7 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
- "@fontsource/material-symbols-rounded": "^5.2.26",
+ "@fontsource/material-symbols-rounded": "^5.2.29",
"@fontsource/roboto": "^5.2.8",
"@fontsource/sansita": "^5.2.8",
"@panzoom/panzoom": "^4.6.0",
@@ -21,9 +21,9 @@
}
},
"node_modules/@fontsource/material-symbols-rounded": {
- "version": "5.2.26",
- "resolved": "https://registry.npmjs.org/@fontsource/material-symbols-rounded/-/material-symbols-rounded-5.2.26.tgz",
- "integrity": "sha512-uvafxIB7sAzXhhwpZHAaugvgULhfA+wyzPomU2CyI+xzNMfyR/42QOKlEQkac+/0alRlczMI1f9o07CtN3a9dw==",
+ "version": "5.2.29",
+ "resolved": "https://registry.npmjs.org/@fontsource/material-symbols-rounded/-/material-symbols-rounded-5.2.29.tgz",
+ "integrity": "sha512-7TajzVIcRvnHfbnOWQ9G9tDmZSp7xyX8jK52c/tVPYpUPVvSxZOmQOffYrF1tbqr1HH8DXJd2I+oMIRrrDd20Q==",
"license": "OFL-1.1",
"funding": {
"url": "https://github.com/sponsors/ayuhito"
diff --git a/package.json b/package.json
index 26efce55..2555ed29 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,7 @@
"homepage": "https://github.com/fipguide/fipguide.github.io#readme",
"description": "",
"dependencies": {
- "@fontsource/material-symbols-rounded": "^5.2.26",
+ "@fontsource/material-symbols-rounded": "^5.2.29",
"@fontsource/roboto": "^5.2.8",
"@fontsource/sansita": "^5.2.8",
"@panzoom/panzoom": "^4.6.0",