fix(opensource): zh 开源页补 pinned 参数接线(收编遗漏)

内容管理车道改了 zh/en 双页,收编时只圈了 en 版,zh 版靠默认
PINNED_DEFAULT 兜底(行为等价但接线不一致)。补收编。

验证: pnpm astro build 45 页;E2E 37/37;content-lint 0/0/0

Spec: none (收编遗漏补齐)

Co-authored-by: GLM-5.3
This commit is contained in:
wait4xandGLM-5.3 committed 2026-11-02 12:50:32 +08:00
1 parent f5232b7c03
commit 46d248877f
1 file changed
+6 -2
+6 -2
View File
@@ -3,15 +3,19 @@ import ProjectWall from '../components/geek/ProjectWall.astro';
import Heatmap from '../components/geek/Heatmap.astro'; import Heatmap from '../components/geek/Heatmap.astro';
import BaseLayout from '../layouts/BaseLayout.astro'; import BaseLayout from '../layouts/BaseLayout.astro';
import { t } from '../i18n/ui'; import { t } from '../i18n/ui';
import { openSourceCopy } from '../lib/site-content';
// 叙述文案 + 置顶名单均改由 content/site/opensource.yaml 供给(后台可改)
const copy = await openSourceCopy('zh');
--- ---
<BaseLayout title="开源 · wait4x" description="我的开源活动:仓库、贡献与本站源码"> <BaseLayout title="开源 · wait4x" description="我的开源活动:仓库、贡献与本站源码">
<h1 class="page-title">开源<span class="count mono">Open Source</span></h1> <h1 class="page-title">开源<span class="count mono">Open Source</span></h1>
<p class="blurb">本站本身即开源:<a class="link" href="https://git.wait4x.online/wait4x/blog">git.wait4x.online/wait4x/blog</a> —— Astro SSG、双写作流、构建发布全链皆在仓中。以下是我在自托管 gitea 与 GitHub 上的全部公开仓库,以及最近一年的贡献活动。</p> <p class="blurb">{copy.blurb}<a class="link" href={copy.repoUrl}>{copy.repoLabel}</a>{copy.blurbAfter}</p>
<Heatmap labels={{ <Heatmap labels={{
title: t('heatmap_title', 'zh'), summary: t('heatmap_summary', 'zh'), title: t('heatmap_title', 'zh'), summary: t('heatmap_summary', 'zh'),
less: t('heatmap_less', 'zh'), more: t('heatmap_more', 'zh'), note: t('heatmap_note', 'zh'), less: t('heatmap_less', 'zh'), more: t('heatmap_more', 'zh'), note: t('heatmap_note', 'zh'),
}} /> }} />
<ProjectWall limit={99} /> <ProjectWall limit={99} pinned={copy.pinned} />
</BaseLayout> </BaseLayout>
<style> <style>