aboutsummaryrefslogtreecommitdiff
path: root/site/layouts/_default/examples.html
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2024-03-03 08:00:52 +0200
committerXhmikosR <[email protected]>2024-03-06 15:50:18 +0200
commitb3bca581f12601455bce520d2d8935f982c51bf7 (patch)
tree8964aac0544ee6901bec90f16590cadb96b1df7f /site/layouts/_default/examples.html
parent192b7f785ee91dd8dde62bc37a8c6fa02cdba194 (diff)
downloadbootstrap-b3bca581f12601455bce520d2d8935f982c51bf7.tar.xz
bootstrap-b3bca581f12601455bce520d2d8935f982c51bf7.zip
templates: use `urls.JoinPath` when handling URLs
Diffstat (limited to 'site/layouts/_default/examples.html')
-rw-r--r--site/layouts/_default/examples.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html
index 82e57c1b5..19aad368d 100644
--- a/site/layouts/_default/examples.html
+++ b/site/layouts/_default/examples.html
@@ -14,7 +14,7 @@
<meta name="robots" content="{{ . }}">
{{- end }}
- {{- $colorModeJS := printf "/docs/%s/assets/js/color-modes.js" $.Site.Params.docs_version -}}
+ {{- $colorModeJS := urls.JoinPath "/docs" $.Site.Params.docs_version "assets/js/color-modes.js" -}}
<script src="{{ $colorModeJS }}"></script>
{{ partial "stylesheet" . }}