diff --git a/.eslintrc.json b/.eslintrc.json index dd73708..7a41007 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,5 +1,4 @@ { "root": true, - "extends": ["standard", "prettier"], - "ignorePatterns": ["themes/default/assets/js/posthog.js"] + "extends": ["standard", "prettier"] } diff --git a/.prettierignore b/.prettierignore index 5d46121..ecde646 100644 --- a/.prettierignore +++ b/.prettierignore @@ -8,7 +8,6 @@ # Prettier overrides *.html themes/default/assets/css/fontawesome.css -themes/default/assets/js/posthog.js # Node.js node_modules diff --git a/hugo.toml b/hugo.toml index 2f1c491..f89d314 100644 --- a/hugo.toml +++ b/hugo.toml @@ -9,8 +9,6 @@ disableKinds = ["rss", "taxonomy", "term"] author = "Evan Sosenko" languageDir = 'ltr' images = ["avatar.png"] -posthog.api = "/_ph" -posthog.key = "phc_6chuBqaboGyoUo5cEmK9j18371Yw99MFagIPj0Hoq3Y" [security] [security.funcs] diff --git a/netlify.toml b/netlify.toml index 5a5d7c9..40b03ff 100644 --- a/netlify.toml +++ b/netlify.toml @@ -76,9 +76,3 @@ to = "https://unpkg.com/@picocss/pico@1.5.5/css/pico.min.css.map" status = 200 force = true - -[[redirects]] - from = "/_ph/*" - to = "https://app.posthog.com/:splat" - status = 200 - force = true diff --git a/themes/default/assets/js/posthog.js b/themes/default/assets/js/posthog.js deleted file mode 100644 index 7f7d5aa..0000000 --- a/themes/default/assets/js/posthog.js +++ /dev/null @@ -1,6 +0,0 @@ -{{ $production := (os.Getenv "CONTEXT") | eq "production" }} - -{{ if $production }} -!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags".split(" "),n=0;n