diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-01-01 13:50:42 -0500 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-01-01 13:52:16 -0500 |
| commit | aefcde2c3933bb50424e05faaaae193724a285da (patch) | |
| tree | b9f37dc4cb242f41b9bb036ecf57fadda671922f | |
| parent | 96beb87b16de6c02660fb7a02515be43db0f16d7 (diff) | |
| download | personal-website-aefcde2c3933bb50424e05faaaae193724a285da.tar.gz personal-website-aefcde2c3933bb50424e05faaaae193724a285da.tar.bz2 personal-website-aefcde2c3933bb50424e05faaaae193724a285da.zip | |
Now using Plausible analytics; Replaced Twitter with Bluesky
| -rw-r--r-- | astro.config.mjs | 6 | ||||
| -rwxr-xr-x | bun.lockb | bin | 294457 -> 303064 bytes | |||
| -rw-r--r-- | package.json | 7 | ||||
| -rw-r--r-- | src/data/contacts.json | 7 | ||||
| -rw-r--r-- | src/layouts/Default.astro | 5 | ||||
| -rw-r--r-- | src/pages/404.astro | 1 |
6 files changed, 16 insertions, 10 deletions
diff --git a/astro.config.mjs b/astro.config.mjs index fd2a541..d2ade25 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,6 +1,5 @@ import { defineConfig, passthroughImageService } from 'astro/config'; import icon from "astro-icon"; -import vercel from "@astrojs/vercel/serverless"; import preact from "@astrojs/preact"; import svelte from "@astrojs/svelte"; @@ -11,11 +10,6 @@ export default defineConfig({ compat: true }), svelte()], output: "server", - adapter: vercel({ - webAnalytics: { - enabled: true - } - }), image: { service: passthroughImageService() }, Binary files differdiff --git a/package.json b/package.json index 4161c5d..02c057a 100644 --- a/package.json +++ b/package.json @@ -10,13 +10,12 @@ "astro": "astro" }, "dependencies": { - "@astrojs/preact": "4.0.0", + "@astrojs/preact": "4.0.1", "@astrojs/rss": "4.0.10", - "@astrojs/svelte": "7.0.1", - "@astrojs/vercel": "8.0.0", + "@astrojs/svelte": "7.0.2", "@iconify-json/fa6-brands": "^1.1.19", "@iconify-json/fa6-solid": "^1.1.21", - "astro": "^5.0.3", + "astro": "5.1.1", "astro-icon": "^1.1.0", "dompurify": "^3.1.6", "markdown-it": "^14.1.0", diff --git a/src/data/contacts.json b/src/data/contacts.json index 80c7cc3..739a145 100644 --- a/src/data/contacts.json +++ b/src/data/contacts.json @@ -21,6 +21,13 @@ "mouseover": "YouTube" }, { + "platform": "Bluesky", + "icon": "bluesky", + "username": "alee14.me", + "url": "https://bsky.app/profile/alee14.me", + "mouseover": "Bluesky" + }, + { "platform": "Mastodon", "icon": "mastodon", "username": "alee@mstdn.ca", diff --git a/src/layouts/Default.astro b/src/layouts/Default.astro index 9762816..e9017c6 100644 --- a/src/layouts/Default.astro +++ b/src/layouts/Default.astro @@ -36,6 +36,11 @@ const date = new Date(); <meta name="theme-color" content="#1B291F"/> <meta name="generator" content={Astro.generator} /> + <!-- Plausible Analytics --> + + <script defer data-domain="alee14.me" src="https://stats.alee14.me/js/script.file-downloads.outbound-links.js"></script> + <script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script> + <ClientRouter fallback="animate" /> <title>{title}</title> </head> diff --git a/src/pages/404.astro b/src/pages/404.astro index 09701a2..38ecfb8 100644 --- a/src/pages/404.astro +++ b/src/pages/404.astro @@ -7,6 +7,7 @@ import Layout from '../layouts/Default.astro' <h2>Page not found</h2> <h2>Whoops! You blew up the website!</h2> </div> + <script>document.addEventListener('DOMContentLoaded', function () { plausible('404', { props: { path: document.location.pathname } }); });</script> </Layout> <style> .error { |
