From 89784d9656712ce31d83c038a87821f78aa07a3c Mon Sep 17 00:00:00 2001 From: Henk Verlinde Date: Wed, 17 Mar 2021 08:59:47 +0100 Subject: [PATCH] fix: script loading + script order --- layouts/partials/footer/script-footer.html | 6 +++--- netlify.toml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/partials/footer/script-footer.html b/layouts/partials/footer/script-footer.html index 5f83c4a..8051dcb 100644 --- a/layouts/partials/footer/script-footer.html +++ b/layouts/partials/footer/script-footer.html @@ -55,7 +55,6 @@ {{ if .Site.Params.options.bootStrapJs -}} {{ end -}} - {{ if .Site.Params.options.highLight -}} {{ end -}} @@ -63,6 +62,7 @@ {{ end -}} + {{ if .Site.Params.options.flexSearch -}} {{ end -}} @@ -76,14 +76,14 @@ {{ if .Site.Params.options.bootStrapJs -}} {{ end -}} - {{ if .Site.Params.options.highLight -}} {{ end -}} {{ if .Site.Params.options.kaTex -}} - + {{ end -}} + {{ if .Site.Params.options.flexSearch -}} {{ end -}} diff --git a/netlify.toml b/netlify.toml index 5ea5945..3ea5ffa 100644 --- a/netlify.toml +++ b/netlify.toml @@ -8,10 +8,10 @@ NPM_VERSION = "7.3.0" [context.production] - command = "hugo -b $URL --gc && npm run build:functions" + command = "hugo -b $URL --gc --minify && npm run build:functions" [context.deploy-preview] - command = "hugo -b $DEPLOY_PRIME_URL --gc" + command = "hugo -b $DEPLOY_PRIME_URL --gc --minify" [context.branch-deploy] - command = "hugo -b $DEPLOY_PRIME_URL --gc" + command = "hugo -b $DEPLOY_PRIME_URL --gc --minify"