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
XhmikosR b46f05a948 Switch to Hugo
This commit includes all the needed workarounds and most changes from the main branch for everything to work, like:

* removing empty lines in raw HTML that break output
* read .browserslistrc, CSS variables from disk instead of duplicating it
* using Hugo mounts
* using Hugo for the docs CSS/JS
* move ToC Sass code to a separate file while adapting it for Hugo

Thus, this patch makes our npm scripts faster since lint runs on one step and there's no separate docs assets processing.
2020-11-19 11:22:22 +02:00

1.1 KiB

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

{{< 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 >}}