1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 15:06:36 -04:00

bundle fathom analytics script into first-party app.js

This commit is contained in:
2021-01-31 12:23:50 -05:00
parent 28b7e8ffd1
commit ef445a538b
11 changed files with 378 additions and 247 deletions

View File

@ -7,8 +7,8 @@
{{- $bundle := slice $darkmode $twemoji -}}
{{- if $includeProdScripts }}
{{- $analytics := resources.Get "js/analytics.js" | resources.ExecuteAsTemplate "js/analytics.js" . }}
{{- $bundle = slice $darkmode $twemoji $analytics }}
{{- $fathom := resources.Get "js/fathom.js" | resources.ExecuteAsTemplate "js/fathom.js" . }}
{{- $bundle = slice $darkmode $twemoji $fathom }}
{{- end }}
{{- $js := $bundle | resources.Concat "/js/app.js" -}}
@ -20,7 +20,3 @@
{{- $searchJS := slice $algolia $algoliaConfig | resources.Concat "/js/search.js" -}}
<script async defer src="{{ $searchJS.Permalink }}"></script>
{{ end }}
{{- if $includeProdScripts }}
<script async defer src="https://manatee.jarv.is/script.js" data-site="PPSQZUDY"></script>
{{ end }}