]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Changing the way `View on GitHub` links are handled (#37214)
authorLouis-Maxime Piton <louismaxime.piton@orange.com>
Tue, 27 Sep 2022 19:01:16 +0000 (21:01 +0200)
committerGitHub <noreply@github.com>
Tue, 27 Sep 2022 19:01:16 +0000 (22:01 +0300)
site/layouts/_default/docs.html

index d7fcf23c8a09721c32251358bb9ea35b977e4a4a..1a3f9c1a166188740c59669c69a5e9cf048164a8 100644 (file)
@@ -16,7 +16,7 @@
     <main class="bd-main order-1">
       <div class="bd-intro pt-2 ps-lg-2">
         <div class="d-md-flex flex-md-row-reverse align-items-center justify-content-between">
-          <a class="btn btn-sm btn-bd-light mb-3 mb-md-0 rounded-2" href="{{ .Site.Params.repo }}/blob/main/site/content/{{ .Page.File.Path | replaceRE `\\` "/" }}" title="View and edit this file on GitHub" target="_blank" rel="noopener">
+          <a class="btn btn-sm btn-bd-light mb-3 mb-md-0 rounded-2" href="{{ .Site.Params.repo }}/blob/v{{ .Site.Params.current_version }}/site/content/{{ .Page.File.Path | replaceRE `\\` "/" }}" title="View and edit this file on GitHub" target="_blank" rel="noopener">
             View on GitHub
           </a>
           <h1 class="bd-title mb-0" id="content">{{ .Title | markdownify }}</h1>