From 4cc10dd2b28bf4cd2130d1f27348df1a71e5713e Mon Sep 17 00:00:00 2001 From: rbetree Date: Sun, 4 Jan 2026 17:03:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=87=8F=E5=B0=91=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=E9=98=BB=E5=A1=9E=E5=B9=B6=E5=8E=8B=E7=BC=A9=E9=9D=99=E6=80=81?= =?UTF-8?q?=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除首页副标题固定 Quicksand 外链字体,改为跟随全站字体变量 - 字体配置新增 fonts.preload(preload+onload 非阻塞加载,含 noscript 回退) - Font Awesome CSS 改为 preload+onload 非阻塞加载,降低 render-blocking - 构建阶段使用 esbuild 压缩 dist 的 style/script/pinyin-match(无 esbuild 时回退为直接复制) - 同步更新文档说明与更新日志 --- README.md | 9 + assets/style.css | 4 +- config/README.md | 7 +- config/_default/site.yml | 1 + package-lock.json | 431 ++++++++++++++++++++++++++++++++++ package.json | 1 + src/generator.js | 81 +++++-- templates/layouts/default.hbs | 6 +- 8 files changed, 518 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 0b66a76..5cd08c1 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,15 @@
点击查看/隐藏更新日志 +### 2026/01/04 + +**1. PageSpeed 首屏性能优化** + +- 移除首页副标题固定 Quicksand 外链字体,改为跟随全站字体 +- 字体外链 CSS 支持 `fonts.preload: true`(`preload + onload` 非阻塞加载,含 `