mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-22 04:15:42 +01:00
Tweaked Google assets.
This commit is contained in:
parent
71a6e8a5b4
commit
12fc52e060
@ -19,9 +19,25 @@
|
||||
<title>{{- if not .IsHome }}{{ .Title }} - {{ .Site.Title }}{{- else }}{{ .Site.Title }} - {{ .Site.Params.Tagline }}{{- end}}</title>
|
||||
<link href="https://fonts.googleapis.com/css?family=Ubuntu|Dosis" rel="stylesheet">
|
||||
<link href="https://use.fontawesome.com/releases/v5.0.2/css/all.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" /> {{ if eq (getenv "HUGO_ENV") "PRD" }}
|
||||
<meta name="robots" content="noindex,nofollow" /> {{ else }}
|
||||
<meta name="robots" content="noindex,nofollow" /> {{ end }}
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" />
|
||||
|
||||
{{ if eq (getenv "HUGO_ENV") "PRD" }}
|
||||
<meta name="robots" content="noindex,nofollow" />
|
||||
|
||||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Params.GoogleAnalyticsTrackingId }} }}"></script>
|
||||
|
||||
<!-- Google Analytics -->
|
||||
<script type="text/javascript">
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() { dataLayer.push(arguments); }
|
||||
gtag('js', new Date());
|
||||
gtag('config', '{{ .Site.Params.GoogleAnalyticsTrackingId }}');
|
||||
</script>
|
||||
<!-- End Google Analytics -->
|
||||
{{ else }}
|
||||
<meta name="robots" content="noindex,nofollow" />
|
||||
{{ end }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@ -34,23 +50,11 @@
|
||||
</div>
|
||||
|
||||
<script src="{{ .Site.BaseURL }}/js/script.js"></script>
|
||||
|
||||
{{ if eq (getenv "HUGO_ENV") "PRD" }}
|
||||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Params.GoogleAnalyticsTrackingId }} }}"></script>
|
||||
|
||||
{{- if eq (getenv "HUGO_ENV") "PRD" }}
|
||||
<script type="text/javascript">
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
|
||||
<!-- Google Analytics -->
|
||||
<script type="text/javascript">
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() { dataLayer.push(arguments); }
|
||||
gtag('js', new Date());
|
||||
gtag('config', '{{ .Site.Params.GoogleAnalyticsTrackingId }}');
|
||||
</script>
|
||||
<!-- End Google Analytics -->
|
||||
{{- end }}
|
||||
|
||||
{{- block "scripts" . }}{{- end }}
|
||||
|
Loading…
Reference in New Issue
Block a user