From 3b5c7faaeccb5457ca08c402ec6d36921401cf93 Mon Sep 17 00:00:00 2001 From: Roman Ispaev Date: Tue, 5 Jan 2021 21:21:43 +0100 Subject: [PATCH] fix wrong asset links on multihost config (#126) CORS issue for multidomain setup (#168) --- layouts/partials/footer.html | 4 ++-- layouts/partials/head.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e3bb857e..3a12866b 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 }} - {{- else}} {{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify }} - + {{- end}} {{- end }} + {{- else}} {{ $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | minify }} - + {{- end}} {{- end -}}