Add google analytics

pull/4/head
Maik de Kruif 4 years ago
parent 41598e35d8
commit 20a715a146
No known key found for this signature in database
GPG Key ID: 46C1200ACD3A432F
  1. 2
      config.toml
  2. 4
      themes/maik-blog/layouts/partials/head.html

@ -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/"

@ -64,4 +64,6 @@
{{ if .OutputFormats.Get "json" }} {{ if .OutputFormats.Get "json" }}
<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" . }}
Loading…
Cancel
Save