From 55f81243b28a1aa58d3f4d415207321d1c86f193 Mon Sep 17 00:00:00 2001 From: Guoqi Sun Date: Mon, 13 Jan 2025 03:10:20 +0800 Subject: [PATCH] fix: removed umami event because it caused page switching to be slower --- README.md | 2 +- astro.config.mjs | 2 +- src/components/astro/footer.astro | 1 - src/components/astro/header.astro | 15 ++------------- src/components/astro/nav.astro | 5 ----- src/components/astro/post-list.astro | 1 - src/components/react/language-toggle.tsx | 8 +------- src/components/react/theme-toggle.tsx | 1 - src/layouts/base.astro | 2 +- 9 files changed, 6 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index b38b215..410afe6 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A minimalism, personal blog theme for Astro. > If you find this project helpful, please consider giving it a star ⭐️ -[![Built with Astro](https://astro.badg.es/v1/built-with-astro/tiny.svg)](https://astro.build) [![Netlify Status](https://api.netlify.com/api/v1/badges/a4eb6e88-606d-4ea6-9a53-179e03a7e2ef/deploy-status)](https://app.netlify.com/sites/astro-air/deploys) +[![Built with Astro](https://astro.badg.es/v1/built-with-astro/tiny.svg)](https://astro.build) [![Netlify Status](https://api.netlify.com/api/v1/badges/3e2c71b9-071f-4846-9321-41c949134ebf/deploy-status)](https://app.netlify.com/sites/astro-air/deploys) Astro Air diff --git a/astro.config.mjs b/astro.config.mjs index 0821242..fd5bc47 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -13,7 +13,7 @@ import robotsTxt from "astro-robots-txt" export default defineConfig({ output: "static", prefetch: true, - site: "https://astro-air.netlify.app", + site: "https://astro-air.guoqi.dev", vite: { worker: { plugins: () => [], diff --git a/src/components/astro/footer.astro b/src/components/astro/footer.astro index 6445853..376bfe1 100644 --- a/src/components/astro/footer.astro +++ b/src/components/astro/footer.astro @@ -24,7 +24,6 @@ const currentYear = new Date().getFullYear() {item.label} diff --git a/src/components/astro/header.astro b/src/components/astro/header.astro index 56adafd..bd8ee72 100644 --- a/src/components/astro/header.astro +++ b/src/components/astro/header.astro @@ -10,24 +10,14 @@ const config = lang === "zh" ? zh : en ---
- +
{config.siteName}
{ config.rss && ( - + ) @@ -38,7 +28,6 @@ const config = lang === "zh" ? zh : en href={social.link} target="_blank" class="hidden md:block" - data-umami-event={social.label} aria-label={social.label} title={social.label} > diff --git a/src/components/astro/nav.astro b/src/components/astro/nav.astro index 130666d..8dc1aba 100644 --- a/src/components/astro/nav.astro +++ b/src/components/astro/nav.astro @@ -17,7 +17,6 @@ const { home, archive, custom, links, about } =

- ) + return } diff --git a/src/components/react/theme-toggle.tsx b/src/components/react/theme-toggle.tsx index 10ba8bb..1aac37a 100644 --- a/src/components/react/theme-toggle.tsx +++ b/src/components/react/theme-toggle.tsx @@ -29,7 +29,6 @@ export function ThemeToggle() { return (