Parameterize UTC offset for Counter analytics

This commit is contained in:
Sean Collins
2023-04-05 17:25:26 -07:00
committed by Will Faught
parent 5c3ac08fc1
commit e2062f37ee
2 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
{{ $page := . }}
{{ with $page.Param "paige.analytics.counter" }}
<script src="https://cdn.counter.dev/script.js" data-id="{{ .account_id }}" data-utcoffset="-7"></script>
<script src="https://cdn.counter.dev/script.js" data-id="{{ .account_id }}" data-utcoffset="{{ .utc_offset }}"></script>
{{ end }}