From 7fa06f41279b514f60c360f2f70564df615f00e9 Mon Sep 17 00:00:00 2001 From: Guoqi Sun Date: Sun, 22 Dec 2024 23:08:42 +0800 Subject: [PATCH] refactor: remove code background --- src/components/astro/comments.astro | 12 ++- src/components/astro/footer.astro | 2 +- src/components/astro/intro.astro | 2 +- .../astro/{blog.astro => recent-blogs.astro} | 0 src/components/astro/tag.astro | 36 +++++---- src/components/react/code-background.tsx | 74 ------------------- src/layouts/base.astro | 2 - src/layouts/main.astro | 10 +-- src/pages/[lang]/about/index.astro | 2 +- src/pages/[lang]/archive/index.astro | 32 ++++---- src/pages/[lang]/index.astro | 4 +- src/pages/[lang]/posts/[...slug].astro | 9 ++- 12 files changed, 52 insertions(+), 133 deletions(-) rename src/components/astro/{blog.astro => recent-blogs.astro} (100%) delete mode 100644 src/components/react/code-background.tsx diff --git a/src/components/astro/comments.astro b/src/components/astro/comments.astro index a7919aa..079526b 100644 --- a/src/components/astro/comments.astro +++ b/src/components/astro/comments.astro @@ -4,10 +4,8 @@ import { common } from "~/config" import "~/styles/comment.css" --- -
- { - common.comments.enabled && common.comments.twikoo.enabled && ( - - ) - } -
+{ + common.comments.enabled && common.comments.twikoo.enabled && ( + + ) +} diff --git a/src/components/astro/footer.astro b/src/components/astro/footer.astro index a75008c..571cc46 100644 --- a/src/components/astro/footer.astro +++ b/src/components/astro/footer.astro @@ -2,7 +2,7 @@ const currentYear = new Date().getFullYear() --- -