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:
authorRise <8315221+AmazingRise@users.noreply.github.com>2021-04-20 09:14:32 +0300
committerGitHub <noreply@github.com>2021-04-20 09:14:32 +0300
commit542495d542d2f8b2a2fe5949d58fee61559debb6 (patch)
tree9e8e01e9333847a3f1b4749f91bde06a6b372e32
parente3e2bceeb2f4e5d668d69fc79f4873d4e09cfa76 (diff)
parent363b7109627dcb2140f44488ba577e5cb4fa4d23 (diff)
Merge pull request #78 from b1tk3y/b1tk3y
Solved https://github.com/AmazingRise/hugo-theme-diary/issues/45
-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 91b9812..d1d897d 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 34779d0..03f5385 100644
--- a/layouts/partials/journal.html
+++ b/layouts/partials/journal.html
@@ -112,4 +112,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>