Add google analytics

This commit is contained in:
2020-12-02 21:17:13 +01:00
parent 41598e35d8
commit 20a715a146
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -33,6 +33,8 @@ disableSitemap = false
disable404 = false disable404 = false
disableHugoGeneratorInject = false disableHugoGeneratorInject = false
googleAnalytics = "UA-136337666-1"
[permalinks] [permalinks]
posts = "/posts/:year/:month/:title/" posts = "/posts/:year/:month/:title/"
@@ -65,3 +65,5 @@
<link href="{{ if .OutputFormats.Get "json" }}{{ .Site.BaseURL }}feed.json{{ end }}" rel="alternate" <link href="{{ if .OutputFormats.Get "json" }}{{ .Site.BaseURL }}feed.json{{ end }}" rel="alternate"
type="application/json" title="{{ .Site.Title }}" /> type="application/json" title="{{ .Site.Title }}" />
{{ end }} {{ end }}
{{ template "_internal/google_analytics_async.html" . }}