Skip to content

Commit

Permalink
Prevent unused partials/analytics.html warning when not in production
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Apr 23, 2024
1 parent 78aa2e5 commit faed422
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,4 @@
{{ partial "favicons" . -}}
{{ partial "social" . -}}
{{ partial "scripts" . -}}
{{- if hugo.IsProduction }}
{{ partial "analytics" . -}}
{{- end }}

0 comments on commit faed422

Please sign in to comment.