mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-22 16:05:41 +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>
|
<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://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 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" }}
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" />
|
||||||
<meta name="robots" content="noindex,nofollow" /> {{ else }}
|
|
||||||
<meta name="robots" content="noindex,nofollow" /> {{ end }}
|
{{ 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>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@ -35,22 +51,10 @@
|
|||||||
|
|
||||||
<script src="{{ .Site.BaseURL }}/js/script.js"></script>
|
<script src="{{ .Site.BaseURL }}/js/script.js"></script>
|
||||||
|
|
||||||
{{ if eq (getenv "HUGO_ENV") "PRD" }}
|
{{- 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>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||||
</script>
|
</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 }}
|
{{- end }}
|
||||||
|
|
||||||
{{- block "scripts" . }}{{- end }}
|
{{- block "scripts" . }}{{- end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user