From f3d8f5e5c5b07c4b154396ce522737a93328cc35 Mon Sep 17 00:00:00 2001 From: the3ash <24548223+the3ash@users.noreply.github.com> Date: Wed, 16 Jul 2025 18:20:45 +0800 Subject: [PATCH] style: tweak mobile paddings & clean up --- scripts/copy-katex.js | 13 ------------- src/components/layout/Header.astro | 7 +------ src/content/about/about.md | 2 +- src/content/posts/_draft-example.md | 2 +- src/content/posts/the-tr-808-story.md | 2 +- src/styles/global.css | 2 +- 6 files changed, 5 insertions(+), 23 deletions(-) delete mode 100644 scripts/copy-katex.js diff --git a/scripts/copy-katex.js b/scripts/copy-katex.js deleted file mode 100644 index 9bcb68c..0000000 --- a/scripts/copy-katex.js +++ /dev/null @@ -1,13 +0,0 @@ -import fs from 'fs' -import path from 'path' - -// 复制KaTeX CSS文件到public目录 -const sourcePath = path.join(process.cwd(), 'node_modules/katex/dist/katex.min.css') -const targetPath = path.join(process.cwd(), 'public/katex.min.css') - -try { - fs.copyFileSync(sourcePath, targetPath) - console.log('✅ KaTeX CSS copied to public directory') -} catch (error) { - console.error('❌ Failed to copy KaTeX CSS:', error.message) -} diff --git a/src/components/layout/Header.astro b/src/components/layout/Header.astro index e957a94..81e0fbc 100644 --- a/src/components/layout/Header.astro +++ b/src/components/layout/Header.astro @@ -5,9 +5,7 @@ import ThemeToggle from '@/components/ui/ThemeToggle.astro'
@@ -27,7 +25,4 @@ import ThemeToggle from '@/components/ui/ThemeToggle.astro' min-width: 3rem; display: inline-block; } - .logo-container { - position: relative; - } diff --git a/src/content/about/about.md b/src/content/about/about.md index 6885876..638dd93 100644 --- a/src/content/about/about.md +++ b/src/content/about/about.md @@ -1,5 +1,5 @@ --- -title: About +title: 'About' ---