Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorb1tk3y <b1tk3y@gmail.com>2021-04-06 11:13:03 +0300
committerb1tk3y <b1tk3y@gmail.com>2021-04-06 11:13:03 +0300
commit363b7109627dcb2140f44488ba577e5cb4fa4d23 (patch)
treea0144a37456bae0114de1bacceda0145254af926
parentdb8f3be61a127212c89391375cf8f4509c9d2ecd (diff)
fix js url error: remove double slash after Site.BaseURL
-rw-r--r--layouts/partials/head.html6
-rw-r--r--layouts/partials/journal.html2
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>