From fa7a9ce07014767a2b1c5ac6ab2a98ebffad4ebc Mon Sep 17 00:00:00 2001 From: Will Carhart Date: Tue, 23 Jan 2024 15:02:21 -0800 Subject: [PATCH] Removed broken analytics --- generator/builder.js | 6 ------ generator/generator.js | 4 ++-- snippets/common/analytics-panelbear.html | 5 ----- snippets/common/analytics-plausible.html | 1 - templates/404.html | 4 ---- templates/about.html | 4 ---- templates/blog_index.html | 4 ---- templates/blog_specific.html | 4 ---- templates/demo_index.html | 4 ---- templates/demo_specific.html | 4 ---- templates/etc.html | 4 ---- templates/home.html | 4 ---- templates/project_index.html | 4 ---- templates/project_specific.html | 4 ---- templates/vault.html | 4 ---- 15 files changed, 2 insertions(+), 58 deletions(-) delete mode 100644 snippets/common/analytics-panelbear.html delete mode 100644 snippets/common/analytics-plausible.html diff --git a/generator/builder.js b/generator/builder.js index 51184303..b36da89a 100644 --- a/generator/builder.js +++ b/generator/builder.js @@ -49,10 +49,6 @@ Supported HTML tags: --> build HTML for rows in the vault (on mobile) {{html:demo-rows}} --> build HTML for rows on demo index {{html:credits}} --> build HTML for credits - {{html:analytics-panelbear}} - --> build HTML for site analytics with Panelbear - {{html:analytics-plausible}} - --> build HTML for site analytics with Plausible.io {{html:logo}} --> build HTML for site logo {{html:darkmode}} --> build HTML for dark mode toggle {{html:email}} --> build HTML for email contact button @@ -261,8 +257,6 @@ const buildHtml = async (data, match, key, page) => { html = await buildDemoRows(projects) break case 'credits': - case 'analytics-panelbear': - case 'analytics-plausible': case 'logo': case 'darkmode': case 'email': diff --git a/generator/generator.js b/generator/generator.js index db27be61..870de46a 100644 --- a/generator/generator.js +++ b/generator/generator.js @@ -6,7 +6,7 @@ const util = require('util') const core = require('./core.js') const readdirPromise = util.promisify(fs.readdir) -const rmdirPromise = util.promisify(fs.rmdir) +const rmPromise = util.promisify(fs.rm) const statPromise = util.promisify(fs.stat) // verify content markdown files are as expected @@ -104,7 +104,7 @@ const main = async () => { await core.refreshRedirects() // clear out source directory - await rmdirPromise('src/', { recursive: true }) + await rmPromise('src/', { recursive: true, force: true }) // asset order is essential, due to how linking occurs: // - scripts must be built first and styles must be first diff --git a/snippets/common/analytics-panelbear.html b/snippets/common/analytics-panelbear.html deleted file mode 100644 index 9b04c72e..00000000 --- a/snippets/common/analytics-panelbear.html +++ /dev/null @@ -1,5 +0,0 @@ - - \ No newline at end of file diff --git a/snippets/common/analytics-plausible.html b/snippets/common/analytics-plausible.html deleted file mode 100644 index da7991df..00000000 --- a/snippets/common/analytics-plausible.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/templates/404.html b/templates/404.html index 7fd619bd..eef6059b 100644 --- a/templates/404.html +++ b/templates/404.html @@ -33,10 +33,6 @@ - - {{html:analytics-plausible}} - {{html:analytics-panelbear}} - diff --git a/templates/about.html b/templates/about.html index 5110ad51..e48347d1 100644 --- a/templates/about.html +++ b/templates/about.html @@ -34,10 +34,6 @@ - - {{html:analytics-plausible}} - {{html:analytics-panelbear}} - diff --git a/templates/blog_index.html b/templates/blog_index.html index 71139c4e..410dc497 100644 --- a/templates/blog_index.html +++ b/templates/blog_index.html @@ -32,10 +32,6 @@ - - {{html:analytics-plausible}} - {{html:analytics-panelbear}} - diff --git a/templates/blog_specific.html b/templates/blog_specific.html index 6e362651..49c73756 100644 --- a/templates/blog_specific.html +++ b/templates/blog_specific.html @@ -43,10 +43,6 @@ - - {{html:analytics-plausible}} - {{html:analytics-panelbear}} - diff --git a/templates/demo_index.html b/templates/demo_index.html index 45703caa..fa373a6a 100644 --- a/templates/demo_index.html +++ b/templates/demo_index.html @@ -32,10 +32,6 @@ - - {{html:analytics-plausible}} - {{html:analytics-panelbear}} - diff --git a/templates/demo_specific.html b/templates/demo_specific.html index 06ae35cb..4e550a52 100644 --- a/templates/demo_specific.html +++ b/templates/demo_specific.html @@ -33,10 +33,6 @@ - - {{html:analytics-plausible}} - {{html:analytics-panelbear}} - diff --git a/templates/etc.html b/templates/etc.html index 870a3516..5fecaa75 100644 --- a/templates/etc.html +++ b/templates/etc.html @@ -32,10 +32,6 @@ - - {{html:analytics-plausible}} - {{html:analytics-panelbear}} - diff --git a/templates/home.html b/templates/home.html index 4cfdc623..4375e197 100644 --- a/templates/home.html +++ b/templates/home.html @@ -34,10 +34,6 @@ - - {{html:analytics-plausible}} - {{html:analytics-panelbear}} - diff --git a/templates/project_index.html b/templates/project_index.html index b8063841..326bbb94 100644 --- a/templates/project_index.html +++ b/templates/project_index.html @@ -33,10 +33,6 @@ - - {{html:analytics-plausible}} - {{html:analytics-panelbear}} - diff --git a/templates/project_specific.html b/templates/project_specific.html index a2f3c9f7..9aeba4b9 100644 --- a/templates/project_specific.html +++ b/templates/project_specific.html @@ -36,10 +36,6 @@ - - {{html:analytics-plausible}} - {{html:analytics-panelbear}} - diff --git a/templates/vault.html b/templates/vault.html index 1ca55245..bcd6d89d 100644 --- a/templates/vault.html +++ b/templates/vault.html @@ -33,10 +33,6 @@ - - {{html:analytics-plausible}} - {{html:analytics-panelbear}} -