From 0c6ad4b467757b86f60c1b43e06e4fb6d65e61a6 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Sat, 8 Oct 2022 09:27:15 -0400 Subject: [PATCH] Scripts tweak to cleanup whitespace etc --- 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 -}}