Fix #7: add ga internal template
This commit is contained in:
parent
eaec70ed4b
commit
a6c28e1b8d
@ -32,6 +32,7 @@ author: ""
|
|||||||
theme: "anubis"
|
theme: "anubis"
|
||||||
paginate: 10
|
paginate: 10
|
||||||
disqusShortname: yourdiscussshortname
|
disqusShortname: yourdiscussshortname
|
||||||
|
googleAnalytics: UA-123-45
|
||||||
|
|
||||||
menu:
|
menu:
|
||||||
main:
|
main:
|
||||||
|
@ -38,4 +38,7 @@
|
|||||||
<!-- <meta name="twitter:description" content=""> -->
|
<!-- <meta name="twitter:description" content=""> -->
|
||||||
<!-- <meta name="twitter:url" content=""> -->
|
<!-- <meta name="twitter:url" content=""> -->
|
||||||
<!-- <meta name="twitter:image" content=""> -->
|
<!-- <meta name="twitter:image" content=""> -->
|
||||||
<meta name="twitter:site" content="@XXX">
|
<meta name="twitter:site" content="@XXX">
|
||||||
|
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
||||||
|
{{ template "_internal/google_analytics_async.html" . }}
|
||||||
|
{{ end }}
|
Loading…
Reference in New Issue
Block a user