add cloudflare web analytics and some sweeping

This commit is contained in:
thisLight 2022-01-01 17:36:55 +08:00
parent e5d64e7153
commit 0d97b24ebe
4 changed files with 40 additions and 28 deletions

4
scripts/cf_analytics.js Normal file
View file

@ -0,0 +1,4 @@
hexo.extend.injector.register('body_end', () => {
return `<!-- Cloudflare Web Analytics --><script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "05f36e0cb3b74781a5755bd4224e252a"}'></script><!-- End Cloudflare Web Analytics -->`;
});