From 20b0c70068dd6bbd2bb5733ad1a4546e6ecb795e Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Sat, 8 Oct 2022 09:45:52 -0400 Subject: [PATCH] Scripts tweak to cleanup whitespace etc (#1262) --- layouts/partials/scripts.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 1ecc0c5f1b..94b5392d3c 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -71,8 +71,13 @@ {{ if .Site.Params.prism_syntax_highlighting -}} {{ else -}} - {{ $c2cJS := resources.Get "js/click-to-copy.js" | minify | fingerprint }} - + {{ $c2cJS := resources.Get "js/click-to-copy.js" -}} + {{ if hugo.IsProduction -}} + {{ $c2cJS = $c2cJS | minify | fingerprint -}} + {{ end -}} + {{ end -}}