diff options
author | Mark Otto <markdotto@gmail.com> | 2022-04-30 21:41:12 +0300 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2022-04-30 22:55:27 +0300 |
commit | 51535cd95ac8eb5746e19c057aeabdbcafef3a8b (patch) | |
tree | b27e06ed850098bcc60f95498507bb987d5d2d5a /site | |
parent | 2ba73d2c8047b38350e7d469787a476d65c22b9d (diff) |
Improve version picker for new pages in v5.2.x
Diffstat (limited to 'site')
-rw-r--r-- | site/layouts/partials/docs-versions.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/site/layouts/partials/docs-versions.html b/site/layouts/partials/docs-versions.html index 4e81c61261..8e34122bea 100644 --- a/site/layouts/partials/docs-versions.html +++ b/site/layouts/partials/docs-versions.html @@ -22,10 +22,14 @@ </a> </li> <li> - <a class="dropdown-item" href="https://getbootstrap.com/docs/5.1/{{ .Scratch.Get "versions_link" }}">v5.1.3</a> + {{- 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> |