diff --git a/.spec/specs/2026-10-25_add-blog-launch/tasks.md b/.spec/specs/2026-10-25_add-blog-launch/tasks.md index 8d1565b..26487b8 100644 --- a/.spec/specs/2026-10-25_add-blog-launch/tasks.md +++ b/.spec/specs/2026-10-25_add-blog-launch/tasks.md @@ -10,12 +10,12 @@ - boundary: 升级 SearchDialog 为 CommandPalette:动作层(切主题/切语言/跳 gitea/RSS 复制)+ 导航层(五页型 zh/en)+ 搜索层(现 Pagefind 逻辑保留);键盘 ↑↓/Enter/Esc/分组标题;i18n 字典串;不碰 Keyboard.astro 的 g-chords(帮助浮层另行加一行 Ctrl K 提示可改 Keyboard) - verify: `pnpm astro build && grep -q "command-palette\|cmd-item" dist/index.html` -- [ ] T2 gitea 贡献热力图 +- [x] T2 gitea 贡献热力图 - claim: op-artalk(mesh 车道,预约 src/lib/heatmap.ts 与 src/components/geek/Heatmap.astro) - boundary: lib 构建时 fetch heatmap API(git log 兜底可选)+ 失败读仓内 src/data/heatmap-fallback.json;组件 53×7 CSS grid 灰阶五档(亮暗两套)+ 每格 title 日期次数 + 少→多图例 + i18n 标题;挂载进首页(ProjectWall 下方);不碰其它组件 - verify: `pnpm astro build && grep -q "heatmap" dist/index.html` -- [ ] T3 webhook HMAC 闭环 +- [x] T3 webhook HMAC 闭环 - depends-on: 无 - claim: orchestrator - boundary: infra/deploy/webhook-receive.sh 填实 HMAC(openssl sha256 比对 X-Gitea-Signature);生成 webhook-secret;gitea API 注册 webhook(push/main/127.0.0.1 接收端点);接收端常驻方式用 python http.server 微型包装(监听 127.0.0.1:13021,仅 HMAC 通过触发 build.sh);实测一次 push→build→staging 戳更新 diff --git a/infra/deploy/webhook_receiver.py b/infra/deploy/webhook_receiver.py new file mode 100644 index 0000000..ca8cdf5 --- /dev/null +++ b/infra/deploy/webhook_receiver.py @@ -0,0 +1,88 @@ +#!/usr/bin/env python3 +"""gitea webhook 接收器(Phase 4 T3):127.0.0.1/桥网关 :13021。 + +安全模型: +- /hook 仅接受 HMAC-SHA256 通过的 push(main) 事件(密钥宿主 0600 文件); +- /healthz 无副作用探活; +- 监听 0.0.0.0 是为 gitea 容器经桥网关(172.22.0.1)回连——宿主在 NAT 后、 + ESA 只代理 80/443 vhost,该端口不对公网;HMAC 是硬门槛。 + +触发链:gitea push(main) → 本接收器验签 → build.sh → www-staging 更新。 +常驻方式:systemd --user(blog-webhook.service);reboot 自启需一次性 +`sudo loginctl enable-linger wait4x`(已列入上线检查单)。 +""" +import hashlib +import hmac +import json +import subprocess +import threading +from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer +from pathlib import Path + +PORT = 13021 +SECRET_FILE = Path.home() / "docker_apps/gitea/webhook-secret.txt" +BUILD = Path.home() / "Code/Github/my-blog/infra/deploy/build.sh" +BUILD_LOCK = threading.Lock() + + +def read_secret() -> bytes: + return SECRET_FILE.read_text().strip().encode() + + +class Handler(BaseHTTPRequestHandler): + def _json(self, code: int, obj: dict) -> None: + body = json.dumps(obj).encode() + self.send_response(code) + self.send_header("Content-Type", "application/json") + self.send_header("Content-Length", str(len(body))) + self.end_headers() + self.wfile.write(body) + + def do_GET(self) -> None: + if self.path == "/healthz": + self._json(200, {"ok": True, "service": "blog-webhook"}) + else: + self._json(404, {"error": "not found"}) + + def do_POST(self) -> None: + if self.path != "/hook": + self._json(404, {"error": "not found"}) + return + length = int(self.headers.get("Content-Length", 0)) + payload = self.rfile.read(length) + sig = self.headers.get("X-Gitea-Signature", "") + expected = hmac.new(read_secret(), payload, hashlib.sha256).hexdigest() + if not hmac.compare_digest(sig, expected): + self._json(401, {"error": "bad signature"}) + return + try: + ref = json.loads(payload).get("ref", "") + except json.JSONDecodeError: + self._json(400, {"error": "bad json"}) + return + if not ref.endswith("/main"): + self._json(200, {"ignored": ref}) + return + if BUILD_LOCK.locked(): + self._json(202, {"queued": False, "reason": "build in progress"}) + return + threading.Thread(target=self._run_build, daemon=True).start() + self._json(202, {"queued": True}) + + def _run_build(self) -> None: + with BUILD_LOCK: + subprocess.run( + ["bash", str(BUILD)], + capture_output=True, timeout=1200, + cwd=str(BUILD.parent), + ) + + def log_message(self, fmt: str, *args: object) -> None: + # 静默常规访问日志(健康探针会刷屏);错误仍走默认 stderr + if "healthz" in (fmt % args if args else fmt): + return + super().log_message(fmt, *args) + + +if __name__ == "__main__": + ThreadingHTTPServer(("0.0.0.0", PORT), Handler).serve_forever() diff --git a/infra/gitea/README.md b/infra/gitea/README.md index bfcf5c7..83f90ec 100644 --- a/infra/gitea/README.md +++ b/infra/gitea/README.md @@ -60,3 +60,10 @@ sqlite 直接热拷贝会撕裂,备份前 `docker compose down` 或用 `sqlite - SSH 通道整体关闭(不映射 22 + `DISABLE_SSH=true`),克隆统一走 https。 - DNS/ESA 解析 `git.wait4x.online` 尚未配置,nginx 接入由运维会话统一执行, 本目录草稿不自行生效。 + + +## 运行时变更台账(2026-10-25,Phase 4) + +- `data/gitea/conf/app.ini` 追加 `[webhook] ALLOWED_HOST_LIST = 172.22.0.1`—— + gitea 28 出站 egress 策略默认拦私网地址(废弃名 ALLOWLIST 无效), + 此项放行 webhook 回连宿主接收器(172.22.0.1:13021);改后需 restart gitea diff --git a/src/components/CommandPalette.astro b/src/components/CommandPalette.astro new file mode 100644 index 0000000..55ca540 --- /dev/null +++ b/src/components/CommandPalette.astro @@ -0,0 +1,367 @@ +--- +// 命令面板:动作层(主题/语言/gitea/RSS)+ 导航层 + Pagefind 搜索层 +// 由 SearchDialog 薄壳转发而来(挂载点名与 DOM id 保持不变,BaseLayout 无需感知) +import { t } from '../i18n/ui'; +import { localePath } from '../lib/locale'; +import type { Locale } from '../lib/locale'; + +interface Props { + locale?: Locale; +} +const { locale = 'zh' } = Astro.props; +const other: Locale = locale === 'zh' ? 'en' : 'zh'; + +// 静态站每页渲染时 Astro.url 即本页路径:语言跳转目标构建期算死,运行时零计算 +const langHref = localePath(Astro.url.pathname.replace(/\/index\.html$/, ''), other); +const rssPath = locale === 'zh' ? '/rss.xml' : '/en/rss.xml'; +const prefix = locale === 'zh' ? '' : '/en'; +const navItems = [ + { href: `${prefix}/`, label: t('nav_home', locale) }, + { href: `${prefix}/archives/`, label: t('nav_posts', locale) }, + { href: `${prefix}/gallery/`, label: t('nav_gallery', locale) }, + { href: `${prefix}/moments/`, label: t('nav_moments', locale) }, + { href: `${prefix}/about/`, label: t('nav_about', locale) }, +]; +--- + + + +
+
+ + + +
    + {navItems.map((n) => ( +
  • + {n.label} +
  • + ))} +
+
+ + +
+

{t('search_hint', locale)}

+

{t('cmd_hint', locale)}

+
+ + + + diff --git a/src/components/SearchDialog.astro b/src/components/SearchDialog.astro index 5f8c18a..6fd3f90 100644 --- a/src/components/SearchDialog.astro +++ b/src/components/SearchDialog.astro @@ -1,116 +1,16 @@ --- -// 站内搜索(Pagefind):首次打开才懒加载索引(spectre 模式,见调研报告 §4c) -// 入口:Header 搜索钮 + 键盘 `/` -import { t } from '../i18n/ui'; +// 薄壳:历史挂载点名与 DOM id 不变(BaseLayout 无需感知), +// 实现整体迁往 CommandPalette(动作 + 导航 + 搜索三层命令面板) +import CommandPalette from './CommandPalette.astro'; +import { localeOf } from '../lib/locale'; import type { Locale } from '../lib/locale'; -// /en/ 侧由 T4 薄页传 locale='en';zh 路由无人传参,默认 zh 零回归 interface Props { locale?: Locale; } -const { locale = 'zh' } = Astro.props; +// BaseLayout 暂未传 locale:按所在页路径构建期自判(zh 页恒 zh,零回归; +// en 页由此拿到英文化面板与 /en/ 导航目标,无需动 BaseLayout) +const { locale = localeOf(Astro.url.pathname) } = Astro.props; --- - - - -

{t('search_hint', locale)}

-
- - - - + diff --git a/src/components/geek/Heatmap.astro b/src/components/geek/Heatmap.astro new file mode 100644 index 0000000..8ba592a --- /dev/null +++ b/src/components/geek/Heatmap.astro @@ -0,0 +1,106 @@ +--- +// 贡献热力图(极客层 P0):纯 CSS grid,零运行时 JS +// 数据聚合见 src/lib/heatmap.ts;灰阶四档直接复用 tokens --ink-1..4(亮暗两套自动跟随) +import { loadHeatmap, levelOf } from '../../lib/heatmap'; + +// 文案全部由页面层注入(locale 无关挂法),keys 与 ui.ts heatmap_* 一一对应 +interface Labels { + title: string; + summary: string; // 含 {n} 占位符 + less: string; + more: string; + note: string; +} +interface Props { + labels: Labels; +} + +const { labels } = Astro.props; +let weeks: import('../../lib/heatmap').HeatDay[][] = []; +let total = 0; +try { + ({ weeks, total } = await loadHeatmap()); +} catch { + // 三级回落已在 lib 内处理;此处再守一层:空网格不破构建 +} +const summary = labels.summary.replace('{n}', String(total)); +--- + +
+

{labels.title}

+ +
+ +
+

+ + {[0, 1, 2, 3, 4].map((l) => ( +

+
+ + diff --git a/src/components/geek/Keyboard.astro b/src/components/geek/Keyboard.astro index 8cb1fc3..70fc67e 100644 --- a/src/components/geek/Keyboard.astro +++ b/src/components/geek/Keyboard.astro @@ -14,6 +14,7 @@ const routes: Record = {

键盘快捷键

+ diff --git a/src/data/heatmap-fallback.json b/src/data/heatmap-fallback.json new file mode 100644 index 0000000..992a48f --- /dev/null +++ b/src/data/heatmap-fallback.json @@ -0,0 +1 @@ +[{"contributions":1,"timestamp":1760925600},{"contributions":3,"timestamp":1761012000},{"contributions":2,"timestamp":1761184800},{"contributions":1,"timestamp":1761271200},{"contributions":2,"timestamp":1761530400},{"contributions":1,"timestamp":1761616800},{"contributions":2,"timestamp":1761876000},{"contributions":1,"timestamp":1762135200},{"contributions":2,"timestamp":1762221600},{"contributions":1,"timestamp":1762308000},{"contributions":2,"timestamp":1762480800},{"contributions":2,"timestamp":1762740000},{"contributions":2,"timestamp":1762826400},{"contributions":1,"timestamp":1763085600},{"contributions":1,"timestamp":1763258400},{"contributions":2,"timestamp":1763344800},{"contributions":2,"timestamp":1763517600},{"contributions":3,"timestamp":1763690400},{"contributions":1,"timestamp":1763949600},{"contributions":2,"timestamp":1764036000},{"contributions":2,"timestamp":1764295200},{"contributions":1,"timestamp":1764813600},{"contributions":3,"timestamp":1765936800},{"contributions":1,"timestamp":1766455200},{"contributions":1,"timestamp":1766541600},{"contributions":1,"timestamp":1766800800},{"contributions":2,"timestamp":1767232800},{"contributions":2,"timestamp":1767319200},{"contributions":1,"timestamp":1768442400},{"contributions":1,"timestamp":1768528800},{"contributions":2,"timestamp":1768788000},{"contributions":2,"timestamp":1768960800},{"contributions":1,"timestamp":1769047200},{"contributions":2,"timestamp":1769133600},{"contributions":1,"timestamp":1769392800},{"contributions":1,"timestamp":1769479200},{"contributions":3,"timestamp":1769652000},{"contributions":1,"timestamp":1769911200},{"contributions":1,"timestamp":1769997600},{"contributions":2,"timestamp":1770256800},{"contributions":1,"timestamp":1770429600},{"contributions":1,"timestamp":1770516000},{"contributions":6,"timestamp":1770602400},{"contributions":1,"timestamp":1770688800},{"contributions":2,"timestamp":1770775200},{"contributions":3,"timestamp":1770861600},{"contributions":4,"timestamp":1770948000},{"contributions":12,"timestamp":1771034400},{"contributions":2,"timestamp":1771120800},{"contributions":12,"timestamp":1771207200},{"contributions":12,"timestamp":1771293600},{"contributions":4,"timestamp":1771380000},{"contributions":1,"timestamp":1771466400},{"contributions":6,"timestamp":1771552800},{"contributions":1,"timestamp":1771639200},{"contributions":8,"timestamp":1771725600},{"contributions":1,"timestamp":1771984800},{"contributions":1,"timestamp":1772503200},{"contributions":3,"timestamp":1772676000},{"contributions":1,"timestamp":1772762400},{"contributions":1,"timestamp":1773021600},{"contributions":2,"timestamp":1773194400},{"contributions":2,"timestamp":1773280800},{"contributions":3,"timestamp":1773367200},{"contributions":2,"timestamp":1773626400},{"contributions":2,"timestamp":1773712800},{"contributions":1,"timestamp":1773972000},{"contributions":1,"timestamp":1774576800},{"contributions":3,"timestamp":1774922400},{"contributions":3,"timestamp":1775008800},{"contributions":3,"timestamp":1775095200},{"contributions":1,"timestamp":1775181600},{"contributions":3,"timestamp":1775613600},{"contributions":2,"timestamp":1775700000},{"contributions":2,"timestamp":1775872800},{"contributions":1,"timestamp":1776132000},{"contributions":2,"timestamp":1776218400},{"contributions":2,"timestamp":1776564000},{"contributions":1,"timestamp":1776736800},{"contributions":2,"timestamp":1776823200},{"contributions":1,"timestamp":1777255200},{"contributions":3,"timestamp":1777341600},{"contributions":1,"timestamp":1777514400},{"contributions":1,"timestamp":1777600800},{"contributions":3,"timestamp":1777860000},{"contributions":2,"timestamp":1778205600},{"contributions":1,"timestamp":1778464800},{"contributions":1,"timestamp":1778551200},{"contributions":2,"timestamp":1778896800},{"contributions":2,"timestamp":1779069600},{"contributions":1,"timestamp":1779242400},{"contributions":1,"timestamp":1779415200},{"contributions":1,"timestamp":1779501600},{"contributions":2,"timestamp":1779847200},{"contributions":2,"timestamp":1780020000},{"contributions":2,"timestamp":1780365600},{"contributions":2,"timestamp":1780711200},{"contributions":2,"timestamp":1780884000},{"contributions":1,"timestamp":1780970400},{"contributions":1,"timestamp":1781056800},{"contributions":2,"timestamp":1781143200},{"contributions":2,"timestamp":1781229600},{"contributions":1,"timestamp":1781488800},{"contributions":1,"timestamp":1781575200},{"contributions":2,"timestamp":1781748000},{"contributions":1,"timestamp":1781834400},{"contributions":1,"timestamp":1782093600},{"contributions":3,"timestamp":1782525600},{"contributions":6,"timestamp":1782612000},{"contributions":2,"timestamp":1782698400},{"contributions":8,"timestamp":1782784800},{"contributions":2,"timestamp":1782871200},{"contributions":2,"timestamp":1782957600},{"contributions":1,"timestamp":1783044000},{"contributions":5,"timestamp":1783130400},{"contributions":1,"timestamp":1783216800},{"contributions":1,"timestamp":1783303200},{"contributions":3,"timestamp":1783389600},{"contributions":10,"timestamp":1783476000},{"contributions":8,"timestamp":1783562400},{"contributions":12,"timestamp":1783648800},{"contributions":2,"timestamp":1783735200},{"contributions":2,"timestamp":1783821600},{"contributions":3,"timestamp":1783908000},{"contributions":10,"timestamp":1783994400},{"contributions":5,"timestamp":1784080800},{"contributions":6,"timestamp":1784167200},{"contributions":8,"timestamp":1784253600},{"contributions":2,"timestamp":1784685600},{"contributions":1,"timestamp":1784858400},{"contributions":1,"timestamp":1785031200},{"contributions":2,"timestamp":1785290400},{"contributions":3,"timestamp":1785376800},{"contributions":1,"timestamp":1785722400},{"contributions":1,"timestamp":1785808800},{"contributions":1,"timestamp":1785895200},{"contributions":2,"timestamp":1786068000},{"contributions":1,"timestamp":1786672800},{"contributions":3,"timestamp":1787018400},{"contributions":1,"timestamp":1787277600},{"contributions":2,"timestamp":1787882400},{"contributions":3,"timestamp":1788141600},{"contributions":3,"timestamp":1788314400},{"contributions":1,"timestamp":1788487200},{"contributions":1,"timestamp":1788660000},{"contributions":1,"timestamp":1788746400},{"contributions":1,"timestamp":1788832800},{"contributions":3,"timestamp":1789005600},{"contributions":2,"timestamp":1789351200},{"contributions":1,"timestamp":1789610400},{"contributions":1,"timestamp":1789696800},{"contributions":2,"timestamp":1789956000},{"contributions":2,"timestamp":1790042400},{"contributions":1,"timestamp":1790128800},{"contributions":2,"timestamp":1790215200},{"contributions":2,"timestamp":1790647200},{"contributions":1,"timestamp":1790733600},{"contributions":3,"timestamp":1790820000},{"contributions":6,"timestamp":1791338400},{"contributions":5,"timestamp":1791424800},{"contributions":3,"timestamp":1791511200},{"contributions":1,"timestamp":1791597600},{"contributions":2,"timestamp":1791684000},{"contributions":12,"timestamp":1791770400},{"contributions":2,"timestamp":1791856800},{"contributions":6,"timestamp":1791943200},{"contributions":4,"timestamp":1792029600},{"contributions":6,"timestamp":1792116000},{"contributions":2,"timestamp":1792202400},{"contributions":8,"timestamp":1792288800},{"contributions":1,"timestamp":1792375200},{"contributions":2,"timestamp":1792461600},{"contributions":3,"timestamp":1792634400}] \ No newline at end of file diff --git a/src/i18n/ui.ts b/src/i18n/ui.ts index c3e17f2..78ed340 100644 --- a/src/i18n/ui.ts +++ b/src/i18n/ui.ts @@ -64,6 +64,14 @@ const dict = { zh: '页面由 Astro 静态生成,不含运行时框架 JS;内容住在自托管 gitea——本地编辑器与 gitea 网页写的是同一个 git 仓库,push 之后由 homelab 自动构建发布;评论走自托管 Artalk。页脚 built from 一行链到本次构建对应的 commit,构建过程透明可追溯。', en: 'Pages are statically generated by Astro with no runtime framework JS. Content lives on a self-hosted gitea — my local editor and the gitea web UI write to the same git repository, and each push is built and published automatically by the homelab. Comments run on self-hosted Artalk. The built-from line in the footer links to the commit behind this build, keeping the process transparent and traceable.', }, + + // ===== 热力图(Phase 4 T2 车道):文案全部页面层注入,组件保持 locale 无关 ===== + heatmap_title: { zh: '开源活动', en: 'Open Source Activity' }, + // {n} 为总贡献次数占位符,调用点 .replace() 填值 + heatmap_summary: { zh: '最近一年 {n} 次贡献', en: '{n} contributions in the last year' }, + heatmap_less: { zh: '少', en: 'Less' }, + heatmap_more: { zh: '多', en: 'More' }, + heatmap_note: { zh: '数据来自 gitea · 构建期生成', en: 'via gitea · generated at build time' }, } as const; export type UiKey = keyof typeof dict; diff --git a/src/lib/heatmap.ts b/src/lib/heatmap.ts new file mode 100644 index 0000000..bd3b81f --- /dev/null +++ b/src/lib/heatmap.ts @@ -0,0 +1,83 @@ +// 贡献热力图数据(极客层 P0):构建期拉自托管 gitea 年历,聚合 53 周 × 7 日 +// 三级回落(远端 → 仓内样例 → 空数组)保证网络单点故障不破构建;见 Heatmap.astro + +export interface HeatDay { + date: string; // YYYY-MM-DD + count: number; +} + +export interface HeatmapYear { + weeks: HeatDay[][]; // 53 列(周)× 7 行(日,周一为首行) + total: number; +} + +export const HEATMAP_API = 'https://git.wait4x.online/api/v1/users/wait4x/heatmap'; + +interface RawHeat { + timestamp: number; + contributions: number; +} + +/** 分档阈值:0 / 1-2 / 3-5 / 6-9 / 10+ → 灰阶 l0-l4,固定阈值可解释(GitHub 同款哲学) */ +export function levelOf(count: number): number { + if (count >= 10) return 4; + if (count >= 6) return 3; + if (count >= 3) return 2; + if (count >= 1) return 1; + return 0; +} + +// 站点受众时区:日界按上海(+8)切,保证 gitea 后台与博客热力图对同一天计数一致; +// 显式固定而非取构建机时区——避免构建环境变化悄悄改变历史归日 +const DAY_FMT = new Intl.DateTimeFormat('en-CA', { + timeZone: 'Asia/Shanghai', year: 'numeric', month: '2-digit', day: '2-digit', +}); + +function toDateString(tsSec: number): string { + return DAY_FMT.format(new Date(tsSec * 1000)); +} + +/** + * 聚合原始贡献点为 53 周年历:起点为「今天所在周的周一」前推 52 周, + * 网格尾部未来的日子填 0(格渲染为空档),首列可能含早于窗口的 0 天。 + */ +export async function loadHeatmap(): Promise { + let raw: RawHeat[] = []; + try { + const res = await fetch(HEATMAP_API, { + headers: { Accept: 'application/json', 'User-Agent': 'wait4x-blog-build' }, + signal: AbortSignal.timeout(10_000), + }); + if (!res.ok) throw new Error(`${HEATMAP_API} -> ${res.status}`); + raw = (await res.json()) as RawHeat[]; + } catch { + // 远端失败回落仓内样例(与 API 同构的原始点,走同一聚合管道保证形态一致) + raw = (await import('../data/heatmap-fallback.json')).default as RawHeat[]; + } + + const byDate = new Map(); + for (const { timestamp, contributions } of raw) { + const key = toDateString(timestamp); + byDate.set(key, (byDate.get(key) ?? 0) + contributions); + } + + // 以 Asia/Shanghai 的“今天”定窗(与归日时区一致) + const today = new Date(toDateString(Math.floor(Date.now() / 1000)) + 'T12:00:00+08:00'); + const dow = (today.getUTCDay() + 6) % 7; // 周一=0 + const gridStart = new Date(today.getTime() - (dow + 52 * 7) * 86_400_000); + + const weeks: HeatDay[][] = []; + let total = 0; + for (let w = 0; w < 53; w++) { + const week: HeatDay[] = []; + for (let d = 0; d < 7; d++) { + const day = new Date(gridStart.getTime() + (w * 7 + d) * 86_400_000); + const key = toDateString(Math.floor(day.getTime() / 1000)); + const count = day > today ? 0 : (byDate.get(key) ?? 0); + total += count; + week.push({ date: key, count }); + } + weeks.push(week); + } + return { weeks, total }; +} diff --git a/src/pages/en/index.astro b/src/pages/en/index.astro index 25b699b..f070e37 100644 --- a/src/pages/en/index.astro +++ b/src/pages/en/index.astro @@ -4,6 +4,7 @@ import { getCollection } from 'astro:content'; import BaseLayout from '../../layouts/BaseLayout.astro'; import AiTranslatedBadge from '../../components/AiTranslatedBadge.astro'; import { t } from '../../i18n/ui'; +import Heatmap from '../../components/geek/Heatmap.astro'; import { POST_TRACKS, trackOf } from '../../content.config'; const en = await getCollection('postsEn'); @@ -48,6 +49,15 @@ const t9 = (cat: keyof typeof POST_TRACKS) => trackOf(cat); })} ))} +
Ctrl K命令面板
t切换明暗
?本帮助
g h首页