Skip to content

Commit

Permalink
Removed broken analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
wcarhart committed Jan 23, 2024
1 parent 3dbe3a8 commit fa7a9ce
Show file tree
Hide file tree
Showing 15 changed files with 2 additions and 58 deletions.
6 changes: 0 additions & 6 deletions generator/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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':
Expand Down
4 changes: 2 additions & 2 deletions generator/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions snippets/common/analytics-panelbear.html

This file was deleted.

1 change: 0 additions & 1 deletion snippets/common/analytics-plausible.html

This file was deleted.

4 changes: 0 additions & 4 deletions templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
<!-- animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>

<!-- site analytics -->
{{html:analytics-plausible}}
{{html:analytics-panelbear}}

<!-- willcarh.art scripts -->
<script src="{{js:darkmode.js}}"></script>
<script src="{{js:year.js}}"></script>
Expand Down
4 changes: 0 additions & 4 deletions templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
<!-- animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>

<!-- site analytics -->
{{html:analytics-plausible}}
{{html:analytics-panelbear}}

<!-- willcarh.art scripts -->
<script src="{{js:darkmode.js}}"></script>
<script src="{{js:tagline.js}}"></script>
Expand Down
4 changes: 0 additions & 4 deletions templates/blog_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
<!-- animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>

<!-- site analytics -->
{{html:analytics-plausible}}
{{html:analytics-panelbear}}

<!-- willcarh.art scripts -->
<script src="{{js:darkmode.js}}"></script>
<script src="{{js:year.js}}"></script>
Expand Down
4 changes: 0 additions & 4 deletions templates/blog_specific.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
<!-- animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>

<!-- site analytics -->
{{html:analytics-plausible}}
{{html:analytics-panelbear}}

<!-- willcarh.art scripts -->
<script src="{{js:darkmode.js}}"></script>
<script src="{{js:year.js}}"></script>
Expand Down
4 changes: 0 additions & 4 deletions templates/demo_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
<!-- animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>

<!-- site analytics -->
{{html:analytics-plausible}}
{{html:analytics-panelbear}}

<!-- willcarh.art scripts -->
<script src="{{js:darkmode.js}}"></script>
<script src="{{js:year.js}}"></script>
Expand Down
4 changes: 0 additions & 4 deletions templates/demo_specific.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
<!-- animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>

<!-- site analytics -->
{{html:analytics-plausible}}
{{html:analytics-panelbear}}

<!-- willcarh.art scripts -->
<script src="{{js:darkmode.js}}"></script>
<script src="{{js:year.js}}"></script>
Expand Down
4 changes: 0 additions & 4 deletions templates/etc.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
<!-- animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>

<!-- site analytics -->
{{html:analytics-plausible}}
{{html:analytics-panelbear}}

<!-- willcarh.art scripts -->
<script src="{{js:darkmode.js}}"></script>
<script src="{{js:year.js}}"></script>
Expand Down
4 changes: 0 additions & 4 deletions templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
<!-- animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>

<!-- site analytics -->
{{html:analytics-plausible}}
{{html:analytics-panelbear}}

<!-- willcarh.art scripts -->
<script src="{{js:darkmode.js}}"></script>
<script src="{{js:tagline.js}}"></script>
Expand Down
4 changes: 0 additions & 4 deletions templates/project_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
<!-- animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>

<!-- site analytics -->
{{html:analytics-plausible}}
{{html:analytics-panelbear}}

<!-- willcarh.art scripts -->
<script src="{{js:darkmode.js}}"></script>
<script src="{{js:year.js}}"></script>
Expand Down
4 changes: 0 additions & 4 deletions templates/project_specific.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
<!-- animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>

<!-- site analytics -->
{{html:analytics-plausible}}
{{html:analytics-panelbear}}

<!-- willcarh.art scripts -->
<script src="{{js:darkmode.js}}"></script>
<script src="{{js:year.js}}"></script>
Expand Down
4 changes: 0 additions & 4 deletions templates/vault.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
<!-- animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>

<!-- site analytics -->
{{html:analytics-plausible}}
{{html:analytics-panelbear}}

<!-- willcarh.art scripts -->
<script src="{{js:darkmode.js}}"></script>
<script src="{{js:year.js}}"></script>
Expand Down

0 comments on commit fa7a9ce

Please sign in to comment.