feat: fix blog index shell layout and clean build warnings - #73
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
完成博客索引壳层与侧栏行为的收尾,并统一文章元数据和资源约定;同时清理已停用的 Insights 与旧列表入口,修复本次 review 发现的路由、生命周期和 RSS 边界问题。
Changes
Layout and sidebar
BlogIndexLayout:宽屏下侧栏随内容滚动,空间不足时锁定在视口底部;用ResizeObserver、滚动和窗口尺寸变化更新位置,页面切换时释放监听与样式。public/shell.css,保证硬刷新和 Astro ClientRouter 导航后的样式一致;保留侧栏近期文章的紧凑样式。Blog list and content contract
category改为必填非空字符串;移除旧cover/coverAlt字段和展示 fallback,统一使用titleImage/titleImageAlt。PostCover组件、无效高亮语言和未使用的 UnoCSS shortcut。/blogs/索引/跳转入口;文章详情仍使用/blogs/[slug]/。Review edge cases
popstate监听,避免每次访问累积旧 DOM 引用。redirect;RSS 对路径段编码并转义 XML,同时保留稳定的站内文章 GUID。Docs and checks
category并移除旧封面字段规则。Validation
d052f44的 GitHub CI:pnpm check、pnpm build均通过。git diff --check通过。pnpm test:blog-sidebar和pnpm test:rss-feed已加入/更新,但未在最新提交后运行。