2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03:00

templates: use urls.JoinPath when handling URLs

This commit is contained in:
XhmikosR
2024-03-03 08:00:52 +02:00
parent 192b7f785e
commit b3bca581f1
6 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -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" . }}