summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-07-29 00:19:09 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-07-29 00:19:09 +0200
commit173cc2c94a7024f8533bf05fab7a6dde7efd4f77 (patch)
treea15cc93af917e29aea0bbbcd7e5c93010a788713 /layouts
parent2e1f42697b17c0195705725c9b14b6164b4cb7f9 (diff)
downloadgohugo-theme-ed-173cc2c94a7024f8533bf05fab7a6dde7efd4f77.tar.gz
Minify ga.js on production mode
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/seo/ga.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/seo/ga.html b/layouts/partials/seo/ga.html
index 1a3566e..a9703b3 100644
--- a/layouts/partials/seo/ga.html
+++ b/layouts/partials/seo/ga.html
@@ -6,7 +6,7 @@
{{- $gaScript = $gaScript | append (resources.Get "js/ga.js") -}}
{{- $gaScript = $gaScript | resources.Concat "js/analytics-bundle.js" -}}
- {{- $gaScript = $gaScript | js.Build (dict "format" "iife" "params" $gaParams) -}}
+ {{- $gaScript = $gaScript | js.Build (dict "format" "iife" "minify" true "params" $gaParams) -}}
{{- if site.Params.assets.disable_fingerprinting }}
<script src="{{ $gaScript.RelPermalink }}"></script>