2019-01-08 17:33:28 +01:00
|
|
|
---
|
|
|
|
title: Versions
|
2020-07-10 14:59:11 +02:00
|
|
|
description: An appendix of hosted documentation for nearly every release of Bootstrap, from v1 through v5.
|
2019-01-08 17:33:28 +01:00
|
|
|
---
|
|
|
|
|
2019-09-01 12:37:24 +02:00
|
|
|
{{< list-versions.inline >}}
|
|
|
|
<div class="row">
|
2020-07-13 20:44:23 +02:00
|
|
|
{{- range $release := sort (index $.Site.Data "docs-versions") "group" "desc" }}
|
2020-09-28 11:40:34 +02:00
|
|
|
<div class="col-md-6 col-lg-4 col-xl mb-4">
|
2019-09-01 12:37:24 +02:00
|
|
|
<h2>{{ $release.group }}</h2>
|
|
|
|
<p>{{ $release.description }}</p>
|
2023-03-22 09:24:17 +01:00
|
|
|
{{- $versions := sort $release.versions "" "desc" -}}
|
2019-09-01 12:37:24 +02:00
|
|
|
{{- range $i, $version := $versions }}
|
|
|
|
{{- $len := len $versions -}}
|
|
|
|
{{ if (eq $i 0) }}<div class="list-group">{{ end }}
|
2023-03-22 09:24:17 +01:00
|
|
|
<a class="list-group-item list-group-item-action py-2 text-primary{{ if (eq $version $.Site.Params.docs_version) }} d-flex justify-content-between align-items-center{{ end }}" href="{{ $release.baseurl }}/{{ $version }}/">
|
|
|
|
{{ $version }}
|
|
|
|
{{ if (eq $version $.Site.Params.docs_version) -}}
|
2023-09-20 11:04:19 +02:00
|
|
|
<span class="badge text-bg-primary">Latest</span>
|
2019-09-01 12:37:24 +02:00
|
|
|
{{- end }}
|
|
|
|
</a>
|
|
|
|
{{ if (eq (add $i 1) $len) }}</div>{{ end }}
|
|
|
|
{{ end -}}
|
|
|
|
</div>
|
|
|
|
{{ end -}}
|
|
|
|
</div>
|
|
|
|
{{< /list-versions.inline >}}
|