summaryrefslogtreecommitdiff
path: root/layouts/partials/footer.html
diff options
context:
space:
mode:
authorRoman Ispaev <romanich@list.ru>2021-01-05 21:21:43 +0100
committerGitHub <noreply@github.com>2021-01-06 01:51:43 +0530
commit3b5c7faaeccb5457ca08c402ec6d36921401cf93 (patch)
tree25d7daada92810278c6b4e77bfd1081927176f57 /layouts/partials/footer.html
parent946cc1ffe35dbf5fcac4f5e2a636592110953610 (diff)
fix wrong asset links on multihost config (#126)
CORS issue for multidomain setup (#168)
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r--layouts/partials/footer.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index e3bb857..3a12866 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -21,11 +21,11 @@
{{- if (and (in site.Params.mainSections .Type) (ne .Layout `archives`) (ne .Layout `search`) (not $isHLJSdisabled)) }}
{{- if not .Site.Params.assets.disableFingerprinting }}
{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint }}
-<script defer src="{{ $highlight.Permalink }}" integrity="{{ $highlight.Data.Integrity }}"
+<script defer src="{{ $highlight.RelPermalink }}" integrity="{{ $highlight.Data.Integrity }}"
onload="hljs.initHighlightingOnLoad();"></script>
{{- else}}
{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify }}
-<script defer src="{{ $highlight.Permalink }}" onload="hljs.initHighlightingOnLoad();"></script>
+<script defer src="{{ $highlight.RelPermalink }}" onload="hljs.initHighlightingOnLoad();"></script>
{{- end}}
{{- end }}
<script>