🐛 Fix Fathom Analytics script included twice

pull/2/head
James Panther 2021-08-25 13:31:53 +10:00
parent 234359dd9c
commit 83eebaefc0
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased] ## [Unreleased]
### Fixed ### Fixed
- Missing dark style for group subheadings on article listings - Missing dark style for group subheadings on article listings
- Fathom Analytics script included twice when using custom domain
## [1.2.0] - 2021-08-22 ## [1.2.0] - 2021-08-22
### Added ### Added

View File

@ -2,8 +2,9 @@
{{ with .Site.Params.fathomAnalytics.site }} {{ with .Site.Params.fathomAnalytics.site }}
{{ if isset $.Site.Params.fathomanalytics "domain" }} {{ if isset $.Site.Params.fathomanalytics "domain" }}
<script src="https://{{ $.Site.Params.fathomanalytics.domain }}/script.js" data-site="{{ . }}" defer></script> <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 }} {{ end }}
<script src="https://cdn.usefathom.com/script.js" data-site="{{ . }}" defer></script>
{{ end }} {{ end }}
{{ template "_internal/google_analytics.html" . }} {{ template "_internal/google_analytics.html" . }}
{{ end }} {{ end }}