diff options
-rw-r--r-- | layouts/partials/head.html | 6 | ||||
-rw-r--r-- | layouts/partials/journal.html | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index bf58d73..769158f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -55,7 +55,7 @@ <link rel="stylesheet" href="{{ $darkmode.Permalink }}" integrity="{{ $darkmode.Data.Integrity }}" media="screen"> {{ end }} -<script src="{{.Site.BaseURL}}/js/loadCSS.js"></script> +<script src="{{"/js/loadCSS.js" | relURL}}"></script> <script> loadCSS("https://fonts.googleapis.com/css?family=Lora|Montserrat|Fira+Mono|Noto+Serif+SC|Material+Icons"); </script> @@ -66,9 +66,9 @@ {{ if and (not (.Params.disableToC) ) (.IsPage) }} {{ if .Site.Params.disableAutoCollapse }} - <script src="{{.Site.BaseURL}}/js/toc.js"></script> + <script src="{{"/js/toc.js" | relURL}}"></script> {{ else }} - <script src="{{.Site.BaseURL}}/js/toc-collapse.js"></script> + <script src="{{"/js/toc-collapse.js" | relURL}}"></script> {{ end }} {{ end }} diff --git a/layouts/partials/journal.html b/layouts/partials/journal.html index 2f89c96..6c2fd48 100644 --- a/layouts/partials/journal.html +++ b/layouts/partials/journal.html @@ -109,4 +109,4 @@ app = new Vue({ }); </script> -<script src="{{.Site.BaseURL}}/js/journal.js"></script>
\ No newline at end of file +<script src="{{"/js/journal.js" | relURL}}"></script> |