🐛 Fix Fathom Analytics script included twice

This commit is contained in:
James Panther
2021-08-25 13:31:53 +10:00
parent 234359dd9c
commit 83eebaefc0
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased]
### Fixed
- Missing dark style for group subheadings on article listings
- Fathom Analytics script included twice when using custom domain
## [1.2.0] - 2021-08-22
### Added
+2 -1
View File
@@ -2,8 +2,9 @@
{{ with .Site.Params.fathomAnalytics.site }}
{{ if isset $.Site.Params.fathomanalytics "domain" }}
<script src="https://{{ $.Site.Params.fathomanalytics.domain }}/script.js" data-site="{{ . }}" defer></script>
{{ else }}
<script src="https://cdn.usefathom.com/script.js" data-site="{{ . }}" defer></script>
{{ end }}
<script src="https://cdn.usefathom.com/script.js" data-site="{{ . }}" defer></script>
{{ end }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}