diff options
| author | XhmikosR <[email protected]> | 2024-03-03 08:00:52 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2024-03-06 15:50:18 +0200 |
| commit | b3bca581f12601455bce520d2d8935f982c51bf7 (patch) | |
| tree | 8964aac0544ee6901bec90f16590cadb96b1df7f /site/layouts/_default/examples.html | |
| parent | 192b7f785ee91dd8dde62bc37a8c6fa02cdba194 (diff) | |
| download | bootstrap-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.html | 2 |
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" . }} |
