From 0a840a05251fa23e0fe5525320bca95c08c9c91d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=99=BE=E5=A7=90?= Date: Fri, 21 Aug 2026 20:56:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=20Google=20Fonts=20?= =?UTF-8?q?=E5=A4=96=E9=83=A8=E4=BE=9D=E8=B5=96=EF=BC=8C=E6=94=B9=E7=94=A8?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=AD=97=E4=BD=93=E6=A0=88=E6=8F=90=E5=8D=87?= =?UTF-8?q?=E5=9B=BD=E5=86=85=E5=8A=A0=E8=BD=BD=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/stack/assets/scss/variables.scss | 2 +- themes/stack/layouts/_partials/head/custom-font.html | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/themes/stack/assets/scss/variables.scss b/themes/stack/assets/scss/variables.scss index 766dffc..623e369 100644 --- a/themes/stack/assets/scss/variables.scss +++ b/themes/stack/assets/scss/variables.scss @@ -33,7 +33,7 @@ */ :root { --sys-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Droid Sans", "Helvetica Neue"; - --base-font-family: "Lato", var(--sys-font-family), sans-serif; + --base-font-family: var(--sys-font-family), sans-serif; --code-font-family: Menlo, Monaco, Consolas, "Courier New", monospace; } diff --git a/themes/stack/layouts/_partials/head/custom-font.html b/themes/stack/layouts/_partials/head/custom-font.html index 8ab9cb2..6c12d6b 100644 --- a/themes/stack/layouts/_partials/head/custom-font.html +++ b/themes/stack/layouts/_partials/head/custom-font.html @@ -1,4 +1,2 @@ - - - - +{{- /* 移除 Google Fonts 外部依赖,改用系统字体栈,提升国内加载速度 */ -}} +{{- /* 原版默认加载 fonts.googleapis.com Lato,导致国内访问慢/阻塞渲染 */ -}}