]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
docs: link to the root page for the homepage (#36344)
authorXhmikosR <xhmikosr@gmail.com>
Fri, 13 May 2022 16:28:18 +0000 (19:28 +0300)
committerGitHub <noreply@github.com>
Fri, 13 May 2022 16:28:18 +0000 (19:28 +0300)
site/layouts/partials/docs-versions.html

index bef4f20ec40901a95e8b6f6b5cd1af5ee0c51d13..54cf3a2e2a7e4e07026ce29dc7f1302a431c4009 100644 (file)
@@ -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>