Add fathom analytics (#200)

Co-authored-by: Dillon <dillonzq@outlook.com>
This commit is contained in:
codedge
2020-04-21 17:37:05 +02:00
committed by GitHub
parent f14301c395
commit a5d0b9a3eb
4 changed files with 24 additions and 1 deletions

View File

@@ -264,4 +264,8 @@
{{- /* Google analytics async */ -}}
{{- if eq hugo.Environment "production" | and .Site.GoogleAnalytics -}}
{{- template "_internal/google_analytics_async.html" . -}}
{{- end -}}
{{ if and .Site.Params.fathomAnalytics .Site.Params.fathomAnalytics.siteID }}
{{- partial "plugin/analytics/fathom" . -}}
{{ end }}
{{- end -}}