Removed all google analytics traces

This commit is contained in:
Roger Gonzalez 2023-01-09 20:01:50 -03:00
parent bb298a0e83
commit 261abeafad
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6
6 changed files with 14 additions and 39 deletions

View File

@ -28,7 +28,6 @@ summaryLength = 30
weight = 2
[params]
google_analytics_id=""
homepage_button_link = '/docs'
homepage_button_text = 'Read The Docs'
homepage_intro = 'YAMS is a basic but powerful media server, easy to install in a bash script'

View File

@ -1,9 +0,0 @@
---
title: 'Overview'
date: 2018-11-28T15:14:39+10:00
weight: 1
---
## Whisper Theme
Whisper is a minimal documentation theme for Hugo. The design and functionality is intentionally minimal. Were aiming for a similar feel to a Github readme.

View File

@ -0,0 +1,13 @@
<div class="sub-footer">
<div class="container">
<div class="row">
<div class="col-12">
<div class="sub-footer-inner">
<ul>
<li class="zerostatic"><a href="https://yams.media">yams.media</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>

View File

@ -66,8 +66,6 @@
<script type="text/javascript" src="{{ ($scripts | minify | fingerprint).RelPermalink }}"></script>
{{ end }}
{{ partial "google-analytics.html" . }}
</body>
</html>

View File

@ -1,26 +0,0 @@
{{- if .Site.IsServer -}}
<!-- Dont add Google analytics to localhost -->
{{ else }}
{{ $gid := (getenv "HUGO_GOOGLE_ANALYTICS_ID") }}
{{ if $gid }}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{- $gid -}}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{- $gid -}}');
</script>
{{ else }}
{{ if .Site.Params.google_analytics_id }}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{- .Site.Params.google_analytics_id -}}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{- .Site.Params.google_analytics_id -}}');
</script>
{{ end }}
{{ end}}
{{ end }}

View File

@ -7,7 +7,7 @@ homepage = "https://github.com/zerostatic/hugo-whisper-theme"
demosite = "https://hugo-whisper.netlify.app"
tags = ["docs","responsive","minimal","clean","bootstrap","zerostatic"]
features = ["docs","bootstrap","scss","netlify","google analytics"]
features = ["docs","bootstrap","scss"]
[author]
name = "Robert Austin"