mirror of https://github.com/jpanther/congo.git
🐛 Fix Fathom Analytics script included twice
parent
234359dd9c
commit
83eebaefc0
|
@ -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
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in New Issue