mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-09 02:46:15 +01:00
11037f8407
Some checks failed
BrowserStack / browserstack (push) Has been cancelled
Bundlewatch / bundlewatch (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
cspell / cspell (push) Has been cancelled
CSS / css (push) Has been cancelled
Docs / docs (push) Has been cancelled
JS Tests / JS Tests (push) Has been cancelled
Lint / lint (push) Has been cancelled
CSS (node-sass) / css (push) Has been cancelled
Release notes / update_release_draft (push) Has been cancelled
28 lines
1.1 KiB
Markdown
28 lines
1.1 KiB
Markdown
---
|
|
title: Versions
|
|
description: An appendix of hosted documentation for nearly every release of Bootstrap, from v1 through v5.
|
|
---
|
|
|
|
{{< list-versions.inline >}}
|
|
<div class="row">
|
|
{{- range $release := sort (index $.Site.Data "docs-versions") "group" "desc" }}
|
|
<div class="col-md-6 col-lg-4 col-xl mb-4">
|
|
<h2>{{ $release.group }}</h2>
|
|
<p>{{ $release.description }}</p>
|
|
{{- $versions := sort $release.versions "" "desc" -}}
|
|
{{- range $i, $version := $versions }}
|
|
{{- $len := len $versions -}}
|
|
{{ if (eq $i 0) }}<div class="list-group">{{ end }}
|
|
<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="{{ urls.JoinPath $release.baseurl $version "/" }}">
|
|
{{ $version }}
|
|
{{ if (eq $version $.Site.Params.docs_version) -}}
|
|
<span class="badge text-bg-primary">Latest</span>
|
|
{{- end }}
|
|
</a>
|
|
{{ if (eq (add $i 1) $len) }}</div>{{ end }}
|
|
{{ end -}}
|
|
</div>
|
|
{{ end -}}
|
|
</div>
|
|
{{< /list-versions.inline >}}
|