diff --git a/package.json b/package.json
index 9951494c..4eab88cc 100644
--- a/package.json
+++ b/package.json
@@ -47,7 +47,7 @@
"husky": "^8.0.3",
"ics-to-json-extended": "^1.1.4",
"lint-staged": "^14.0.1",
- "liquidjs": "^10.8.3",
+ "liquidjs": "^10.9.1",
"luxon": "^3.4.0",
"markdown-it": "^13.0.1",
"markdown-it-anchor": "^8.4.1",
diff --git a/src/_data/fathom.js b/src/_data/fathom.js
new file mode 100644
index 00000000..28c3cc6d
--- /dev/null
+++ b/src/_data/fathom.js
@@ -0,0 +1,24 @@
+const fs = require('fs')
+const fetch = require('node-fetch')
+
+module.exports = async function () {
+ const sourceUrl = 'https://cdn.usefathom.com/script.js'
+
+ fetch(sourceUrl)
+ .then((response) => response.text())
+ .then((sourceContent) => {
+ if (!sourceContent.includes('fathomScript.src.indexOf("cdn.usefathom.com")'))
+ throw new Error('Fathom script changed!')
+ const modifiedContent = sourceContent.replace(
+ 'fathomScript.src.indexOf("cdn.usefathom.com")',
+ 'fathomScript.src.indexOf("coryd.dev")'
+ )
+ const newFilePath = './_site/script.js'
+ fs.writeFile(newFilePath, modifiedContent, (err) => {
+ if (err) console.log(err)
+ })
+ })
+ .catch((err) => {
+ console.error('Error downloading the file:', err)
+ })
+}
diff --git a/src/_includes/base.liquid b/src/_includes/base.liquid
index c6d1f057..ceed4b7f 100644
--- a/src/_includes/base.liquid
+++ b/src/_includes/base.liquid
@@ -56,7 +56,7 @@
{% jsonLd meta, type, tags %}