diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-29 00:19:09 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-29 00:19:09 +0200 |
| commit | 173cc2c94a7024f8533bf05fab7a6dde7efd4f77 (patch) | |
| tree | a15cc93af917e29aea0bbbcd7e5c93010a788713 | |
| parent | 2e1f42697b17c0195705725c9b14b6164b4cb7f9 (diff) | |
| download | gohugo-theme-ed-173cc2c94a7024f8533bf05fab7a6dde7efd4f77.tar.gz | |
Minify ga.js on production mode
| -rw-r--r-- | layouts/partials/seo/ga.html | 2 |
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> |
