]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
docs.html: replace backslashes with forward slashes (#32102)
authorXhmikosR <xhmikosr@gmail.com>
Mon, 9 Nov 2020 18:47:55 +0000 (20:47 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Nov 2020 18:47:55 +0000 (20:47 +0200)
This resulted in wrong links when building the docs on Windows.

site/layouts/_default/docs.html

index 5a5b643661473f84e5de070d7688986d0a55a4d3..cf237dd7b815dc5f0d5eb98eb0d16e530a44d0c8 100644 (file)
@@ -17,7 +17,7 @@
       <main class="bd-main order-1">
         <div class="bd-intro pl-lg-4">
           <div class="d-md-flex flex-md-row-reverse align-items-center justify-content-between">
-            <a class="btn btn-sm btn-bd-light mb-2 mb-md-0" href="{{ .Site.Params.repo }}/blob/main/site/content/{{ .Page.File.Path }}" title="View and edit this file on GitHub" target="_blank" rel="noopener">View on GitHub</a>
+            <a class="btn btn-sm btn-bd-light mb-2 mb-md-0" href="{{ .Site.Params.repo }}/blob/main/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" id="content">{{ .Title | markdownify }}</h1>
           </div>
           <p class="bd-lead">{{ .Page.Params.Description | markdownify }}</p>