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:
@ -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 }}
|
||||
|
Reference in New Issue
Block a user