1
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:
2021-05-30 08:55:37 -04:00
committed by GitHub
parent b3e916e063
commit cfc3334da7
11 changed files with 3571 additions and 114 deletions

View File

@ -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" . }}