From 0a061d47a1da74c832b7655d72d050aa5046efb4 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 19 Jul 2019 13:13:52 +0300 Subject: [PATCH] Change condition. --- site/layouts/partials/scripts.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/site/layouts/partials/scripts.html b/site/layouts/partials/scripts.html index b02e85c58a56..b9e5b08c3ef4 100644 --- a/site/layouts/partials/scripts.html +++ b/site/layouts/partials/scripts.html @@ -1,7 +1,9 @@ -{{ if and (eq (getenv "HUGO_ENV") "production") (ne .Page.Params.include_js false) -}} - -{{ else -}} - +{{ if (ne .Page.Params.include_js false) -}} + {{ if (eq (getenv "HUGO_ENV") "production") -}} + + {{- else -}} + + {{- end -}} {{- end }} {{ if (or (eq .Page.Layout "docs") (eq .Page.Layout "single")) -}}