mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 14:46:37 -04:00
super simple serverless hit counter for fun (#410)
This commit is contained in:
@ -2,8 +2,9 @@
|
||||
{{- $includeProdScripts := eq hugo.Environment "production" -}}
|
||||
|
||||
{{- $twemoji := resources.Get "js/vendor/twemoji.js" | resources.ExecuteAsTemplate "js/vendor/twemoji.js" . -}}
|
||||
{{- $counter := resources.Get "js/counter.js" -}}
|
||||
|
||||
{{- $bundle := slice $twemoji -}}
|
||||
{{- $bundle := slice $twemoji $counter -}}
|
||||
|
||||
{{- if $includeProdScripts }}
|
||||
{{- $fathom := resources.Get "js/fathom.js" | resources.ExecuteAsTemplate "js/fathom.js" . }}
|
||||
|
Reference in New Issue
Block a user