chore(spec): 归档 fix-site-polish——四缺陷+双轨验证六任务收敛

Spec: 2026-10-25_fix-site-polish

Co-authored-by: GLM-5.3
This commit is contained in:
wait4xandGLM-5.3 committed 2026-10-25 11:30:40 +08:00
1 parent 86e8009f34
commit 59b7baae51
8 files changed
+221 -92

No files matched your search

+4 -2
View File
@@ -9,8 +9,10 @@ interface Props {
/** 调用方已完成 draft 过滤与 pubDate 倒序 */
posts: CollectionEntry<'posts'>[];
locale?: 'zh' | 'en';
/** slug → 译题(en 列表显示英文标题,视觉复核范围外观察) */
titleOverrides?: Record<string, string>;
}
const { posts, locale = 'zh' } = Astro.props;
const { posts, locale = 'zh', titleOverrides } = Astro.props;
// 轨道标签走字典(en 首页复用本组件时的双语位);zh 保持原词表语义
const TRACK_LABEL: Record<PostCategory, string> = {
reading: t('category_reading', locale),
@@ -52,7 +54,7 @@ const mmdd = (d: Date) =>
aria-hidden="true"
/>
)}
<span class="row-title">{post.data.title}</span>
<span class="row-title">{titleOverrides?.[post.id] ?? post.data.title}</span>
{cat !== 'reading' &&
post.data.tags.map((tag) => <code class="tag">{`#${tag}`}</code>)}
<time class="row-date" datetime={post.data.pubDate.toISOString()}>