Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2022-05-13 19:28:18 +0300
committerGitHub <noreply@github.com>2022-05-13 19:28:18 +0300
commit5f8383a136fcde6145144ac4bb56e93fc0011488 (patch)
tree64f5d521faeac21bd1cf54ae035930a3926fdf7a
parentbd84449330aae3fea92f5895c6ee3499e2fd709b (diff)
docs: link to the root page for the homepage (#36344)
-rw-r--r--site/layouts/partials/docs-versions.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/layouts/partials/docs-versions.html b/site/layouts/partials/docs-versions.html
index bef4f20ec4..54cf3a2e2a 100644
--- a/site/layouts/partials/docs-versions.html
+++ b/site/layouts/partials/docs-versions.html
@@ -17,7 +17,7 @@
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="bd-versions">
<li><h6 class="dropdown-header">v5 releases</h6></li>
<li>
- <a class="dropdown-item current" aria-current="true" href="/docs/{{ .Site.Params.docs_version }}/{{ $versions_link }}">
+ <a class="dropdown-item current" aria-current="true" href="{{ if .IsHome }}/{{ else }}/docs/{{ .Site.Params.docs_version }}/{{ $versions_link }}{{ end }}">
Latest ({{ .Site.Params.docs_version }}.x)
</a>
</li>