diff --git a/CLAUDE.md b/CLAUDE.md index 00a9135..06df291 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -75,13 +75,13 @@ pnpm preview # 预览生产构建 ### 路由与布局 5 个 view,两种 layout: -- `DefaultLayout`(`/`):顶栏 + 侧栏 + 内容 + 页脚,包 home / chanlun / articles / about。 +- `DefaultLayout`(`/`):顶栏 + 内容 + 页脚,包 home / chanlun / articles / about。 - `ReaderLayout`(`/read/:category/:slug`):沉浸阅读,含阅读进度、阅读设置、上下篇导航。 - markdown 的 h2/h3 会被 `useMarkdown.ts` 注入 `id`(slug 来自 `utils/slug.ts`),便于锚点跳转。 ### 现存组件缺标记类名 -`components/ui/`(BaseButton/Badge/Card/SearchInput)、`components/layout/`(AppHeader/AppSidebar/AppFooter)及 `ArticleCard` 等目前是纯工具类。改动它们时按上面的「标记类名」约定补齐。 +`components/ui/`(BaseButton/Badge/Card/SearchInput)、`components/layout/`(AppHeader/AppFooter)及 `ArticleCard` 等目前是纯工具类。改动它们时按上面的「标记类名」约定补齐。 ## 其他约定 diff --git a/README.md b/README.md index 9c37242..d1c2c90 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ pnpm typecheck # 仅类型检查 src/ ├── components/ │ ├── ui/ # 基础组件:BaseButton / Badge / Card / SearchInput -│ ├── layout/ # AppHeader / AppSidebar / AppFooter +│ ├── layout/ # AppHeader / AppFooter │ ├── ArticleCard.vue # 文章列表卡片 │ ├── TableOfContents.vue │ ├── ThemeToggle.vue / ReaderSettings.vue / ReadingProgress.vue @@ -47,7 +47,7 @@ src/ │ ├── essays.ts # 杂谈随笔(示例数据) │ └── categories.ts # 分类信息 ├── layouts/ -│ ├── DefaultLayout.vue # 顶栏 + 侧栏 + 内容 + 页脚 +│ ├── DefaultLayout.vue # 顶栏 + 内容 + 页脚 │ └── ReaderLayout.vue # 沉浸阅读布局 ├── views/ # 5 个页面 ├── stores/ # theme / reading(Pinia) diff --git a/src/components/layout/AppFooter.vue b/src/components/layout/AppFooter.vue index dfe929a..4e4d712 100644 --- a/src/components/layout/AppFooter.vue +++ b/src/components/layout/AppFooter.vue @@ -16,11 +16,6 @@ const links = [ class="mx-auto flex max-w-[1400px] flex-col items-center justify-between gap-4 px-4 py-8 sm:flex-row sm:px-6" >
- - -
缠论研习社 专注缠论的系统性研习 diff --git a/src/components/layout/AppHeader.vue b/src/components/layout/AppHeader.vue index 65fad39..ca1b901 100644 --- a/src/components/layout/AppHeader.vue +++ b/src/components/layout/AppHeader.vue @@ -1,10 +1,7 @@ - - diff --git a/src/layouts/DefaultLayout.vue b/src/layouts/DefaultLayout.vue index c5c3113..70c6149 100644 --- a/src/layouts/DefaultLayout.vue +++ b/src/layouts/DefaultLayout.vue @@ -1,34 +1,26 @@