diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-12 02:35:36 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-12 02:36:08 +0200 |
| commit | d18f8b29630a3c6281a2754999c519b4d014ed56 (patch) | |
| tree | 685fae401462610cc0347d683049e12de097bee8 /layouts/partials/scripts.html | |
| parent | f45fe5f45917593edd5de2416efe4546d1699a5b (diff) | |
| download | gohugo-theme-ed-d18f8b29630a3c6281a2754999c519b4d014ed56.tar.gz | |
Rework partial for Google Site Tag tagging/analytics framework
Diffstat (limited to 'layouts/partials/scripts.html')
| -rw-r--r-- | layouts/partials/scripts.html | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html deleted file mode 100644 index 1f5983a..0000000 --- a/layouts/partials/scripts.html +++ /dev/null @@ -1,11 +0,0 @@ -{{- if or (eq (getenv "HUGO_ENV") "production") (eq site.Params.env "production") }} - {{- with site.GoogleAnalytics -}} - {{- $ga := resources.Get "js/ga.js" | minify -}} - {{- if not site.Params.assets.disable_fingerprinting -}} - {{- $ga = $ga | fingerprint -}} - <script src="{{ $ga.RelPermalink }}" integrity="{{ $ga.Data.Integrity }}"></script> - {{- else -}} - <script src="{{ $ga.RelPermalink }}"></script> - {{- end -}} - {{- end -}} -{{- end -}} |
