0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00
Bootstrap/site/content/docs/versions.md

1.1 KiB

title description
Versions An appendix of hosted documentation for nearly every release of Bootstrap, from v1 through v5.

{{< list-versions.inline >}}

{{- range $release := sort (index $.Site.Data "docs-versions") "group" "desc" }}

{{ $release.group }}

{{ $release.description }}

{{- $versions := sort $release.versions "v" "desc" -}} {{- range $i, $version := $versions }} {{- $len := len $versions -}} {{ if (eq $i 0) }}
{{ end }} {{ $version.v }} {{ if (eq $version.v $.Site.Params.docs_version) -}} Latest {{- end }} {{ if (eq (add $i 1) $len) }}
{{ end }} {{ end -}}
{{ end -}}
{{< /list-versions.inline >}}