summaryrefslogtreecommitdiff
path: root/themes/hugo-coder/layouts/partials/analytics/fathom.html
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2021-12-26 00:30:09 -0500
committerRyan Schanzenbacher <ryan@rschanz.org>2021-12-26 00:30:09 -0500
commit98a21b966410c127e74b16e7a2817882ee16560f (patch)
treeee646c86e3d3f0fa1cd952294d49feeeb700d60f /themes/hugo-coder/layouts/partials/analytics/fathom.html
parente6eec31b71ab728f6610f4e764b2e206fb95f940 (diff)
convert theme from submodule to regular files
Diffstat (limited to 'themes/hugo-coder/layouts/partials/analytics/fathom.html')
m---------themes/hugo-coder0
-rw-r--r--themes/hugo-coder/layouts/partials/analytics/fathom.html13
2 files changed, 13 insertions, 0 deletions
diff --git a/themes/hugo-coder b/themes/hugo-coder
deleted file mode 160000
Subproject 55b2a150f990bc56364dba347bc9acc6aab07be
diff --git a/themes/hugo-coder/layouts/partials/analytics/fathom.html b/themes/hugo-coder/layouts/partials/analytics/fathom.html
new file mode 100644
index 0000000..13e7cfc
--- /dev/null
+++ b/themes/hugo-coder/layouts/partials/analytics/fathom.html
@@ -0,0 +1,13 @@
1<script>
2(function(f, a, t, h, o, m){
3 a[h]=a[h]||function(){
4 (a[h].q=a[h].q||[]).push(arguments)
5 };
6 o=f.createElement('script'),
7 m=f.getElementsByTagName('script')[0];
8 o.async=1; o.src=t; o.id='fathom-script';
9 m.parentNode.insertBefore(o,m)
10})(document, window, '//{{ .Site.Params.fathomAnalytics.serverURL | default "cdn.usefathom.com" }}/tracker.js', 'fathom');
11fathom('set', 'siteId', '{{ .Site.Params.fathomAnalytics.siteID }}');
12fathom('trackPageview');
13</script>