From cfbfc2fbc171461469424c815aa70042f5f84cf1 Mon Sep 17 00:00:00 2001 From: Gottfried Mayer Date: Mon, 17 Jul 2023 10:36:07 +0200 Subject: [PATCH] always generate appearance.js in js folder depending on the basePath, the "appearance.js" was generated in an additional subfolder (i.E. /js/docs/appearance... instead of /js/appearance... ). --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index b987066e..67ab1713 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -50,7 +50,7 @@ {{ $jsAppearance := resources.Get "js/appearance.js" }} - {{ $jsAppearance = $jsAppearance | resources.ExecuteAsTemplate $jsAppearance.RelPermalink . | resources.Minify | resources.Fingerprint "sha512" }} + {{ $jsAppearance = $jsAppearance | resources.ExecuteAsTemplate "js/appearance.js" . | resources.Minify | resources.Fingerprint "sha512" }} {{ if .Site.Params.enableSearch | default false }}