1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-29 08:10:47 +02:00

Improve front matter "added" params

Add missing ones and add the ability to show or hide the badge

Fixes a few more 404 errors in the version picker
This commit is contained in:
XhmikosR
2024-03-05 08:12:38 +02:00
parent 953b4b6c1b
commit 2c4e1cd660
16 changed files with 36 additions and 16 deletions

View File

@@ -10,9 +10,9 @@
{{- $versions_link = printf "%s/" $page_slug -}}
{{- end -}}
{{- $added_in_51 := eq (string .Page.Params.added) "5.1" -}}
{{- $added_in_52 := eq (string .Page.Params.added) "5.2" -}}
{{- $added_in_53 := eq (string .Page.Params.added) "5.3" -}}
{{- $added_in_51 := eq (string .Page.Params.added.version) "5.1" -}}
{{- $added_in_52 := eq (string .Page.Params.added.version) "5.2" -}}
{{- $added_in_53 := eq (string .Page.Params.added.version) "5.3" -}}
<li class="nav-item dropdown">
<button type="button" class="btn btn-link nav-link py-2 px-0 px-lg-2 dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false" data-bs-display="static">