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

+5 -1
View File
@@ -12,6 +12,10 @@ import { t } from '../../i18n/ui';
const posts = (await getCollection('posts', ({ data }) => !data.draft)).sort(
(a, b) => b.data.pubDate.getTime() - a.data.pubDate.getTime(),
);
// 列表标题吃 postsEn 译题(缺译回退 zh,与 /en/archives 同策略)
const enTitle = Object.fromEntries(
(await getCollection('postsEn')).map((e) => [e.id, e.data.title]),
);
const photos = (await getCollection('photos')).slice(0, 4);
---
@@ -65,7 +69,7 @@ const photos = (await getCollection('photos')).slice(0, 4);
</div>
</IdCard>
<PostList {posts} locale="en" />
<PostList {posts} locale="en" titleOverrides={enTitle} />
<section class="latest" aria-label={t('latest_photos', 'en')}>
<div class="latest-head">