From 9929f601709f9bddc385fdaea399d8da8f0a2644 Mon Sep 17 00:00:00 2001 From: rbetree Date: Sun, 4 Jan 2026 18:18:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8A=A0=E5=9B=BA=E9=93=BE=E6=8E=A5/?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E5=AE=89=E5=85=A8=E4=B8=8E=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E4=B8=80=E8=87=B4=E6=80=A7=EF=BC=9Bsync-articles=20=E5=AF=B9?= =?UTF-8?q?=E9=BD=90=20best-effort?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 模板与运行时统一做 URL scheme 白名单校验(不安全降级为 #),并清洗 icon class;分类标题/新增分类改用 DOM API 避免 innerHTML 注入 - sync-articles 主入口异常不再返回非 0 退出码,避免阻断 build/deploy - window.MeNav.version 改为从 meta menav-version/配置自动读取,避免写死版本 - 文档/配置:新增 security.allowedSchemes 配置说明 --- README.md | 9 +- config/README.md | 15 +- config/_default/site.yml | 13 ++ scripts/sync-articles.js | 4 +- src/helpers/utils.js | 59 +++++- src/script.js | 256 +++++++++++++++++++------- templates/components/page-header.hbs | 2 +- templates/components/site-card.hbs | 12 +- templates/components/social-links.hbs | 6 +- 9 files changed, 288 insertions(+), 88 deletions(-) diff --git a/README.md b/README.md index 5cd08c1..d9fccab 100644 --- a/README.md +++ b/README.md @@ -45,13 +45,20 @@ ### 2026/01/04 -**1. PageSpeed 首屏性能优化** +**1. 首屏性能优化** - 移除首页副标题固定 Quicksand 外链字体,改为跟随全站字体 - 字体外链 CSS 支持 `fonts.preload: true`(`preload + onload` 非阻塞加载,含 `