Post/zhihu us iran war sentiment - #13
Merged
Merged
Conversation
避免 Windows/WSL 检出时 CRLF 导致幻影 diff。
layout.tsx 已提供 <main id=main-content>,各页面不再重复包裹。 补充 about/blog/tags 的 canonical,404 页增加 robots noindex。
新增 absUrl()、resolveImage()、rssAlternates,替换散落在 blog/[slug]、layout、sitemap、json-ld 中的手工拼接逻辑。
小屏下显示汉堡按钮,展开可折叠导航列表;保留 aria 属性与焦点管理。
补充 absUrl / resolveImage / rssAlternates 的使用说明, 更新 Next 16 注意事项与路由列表。
series/[slug] 与 tags/[slug] 同步移除外层 <main>。
- 将 deriveExcerpt 与 frontmatter 校验集中到 src/lib/post-utils.mjs, 消除与 scripts/build-search-index.mjs 的重复。 - slugify 不再 percent-encode 中文,标签/系列 URL 显示为 /tags/随笔、/series/加密研报-2026 等可读形式。
新增 src/types/css-vars.d.ts 扩展 React.CSSProperties, 使自定义 CSS 变量可直接用于 style 属性;reveal.tsx 中动态标签 改为 React.ElementType 以安全传递 ref。
Markdown/MDX 中的原始 HTML 先保留到 rehype 树,再经 rehype-sanitize 清洗后写入 <content:encoded>, 防止作者手误注入危险标签。
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.
No description provided.