0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00

Improve version picker for new pages in v5.2.x

This commit is contained in:
Mark Otto 2022-04-30 11:41:12 -07:00 committed by Mark Otto
parent 2ba73d2c80
commit 51535cd95a

View File

@ -22,10 +22,14 @@
</a>
</li>
<li>
{{- if (eq .Page.Params.added "5.2") }}
<div class="dropdown-item disabled">v5.1.3</div>
{{- else }}
<a class="dropdown-item" href="https://getbootstrap.com/docs/5.1/{{ .Scratch.Get "versions_link" }}">v5.1.3</a>
{{- end }}
</li>
<li>
{{- if eq .Page.Params.added "5.1" }}
{{- if or (eq .Page.Params.added "5.1") (eq .Page.Params.added "5.2") }}
<div class="dropdown-item disabled">v5.0.2</div>
{{- else }}
<a class="dropdown-item" href="https://getbootstrap.com/docs/5.0/{{ .Scratch.Get "versions_link" }}">v5.0.2</a>