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>2020-11-09 21:47:55 +0300
committerGitHub <noreply@github.com>2020-11-09 21:47:55 +0300
commitd4c3dc5351dd770a5e2905e836836b3040f155f3 (patch)
treecd5c93ecce97baa4a9fa32c8927a149394ae6618
parent411fc649f236248244e19b49a1aeb43cc8ddfbca (diff)
docs.html: replace backslashes with forward slashes (#32102)
This resulted in wrong links when building the docs on Windows.
-rw-r--r--site/layouts/_default/docs.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/layouts/_default/docs.html b/site/layouts/_default/docs.html
index 5a5b643661..cf237dd7b8 100644
--- a/site/layouts/_default/docs.html
+++ b/site/layouts/_default/docs.html
@@ -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>