Skip to content

Commit

Permalink
Prevent unused partials/analytics.html warning when not in producti…
Browse files Browse the repository at this point in the history
…on (#465)
  • Loading branch information
julien-deramond committed Apr 24, 2024
1 parent 78aa2e5 commit 08a408f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/layouts/partials/analytics.html
@@ -1 +1,3 @@
{{- if hugo.IsProduction }}
<script async src="https://cdn.usefathom.com/script.js" data-site="{{ .Site.Params.analytics.fathom_site }}"></script>
{{- end }}
2 changes: 0 additions & 2 deletions src/layouts/partials/head.html
Expand Up @@ -25,6 +25,4 @@
{{ partial "favicons" . -}}
{{ partial "social" . -}}
{{ partial "scripts" . -}}
{{- if hugo.IsProduction }}
{{ partial "analytics" . -}}
{{- end }}

0 comments on commit 08a408f

Please sign in to comment.