From 3ac57552b0ce4f92b7fb46a9a347d3d08dc2c7f7 Mon Sep 17 00:00:00 2001 From: enneaa Date: Tue, 18 Mar 2025 21:04:04 +0800 Subject: [PATCH] Update theme.ts --- quartz/util/theme.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quartz/util/theme.ts b/quartz/util/theme.ts index 56261e35b..011efb612 100644 --- a/quartz/util/theme.ts +++ b/quartz/util/theme.ts @@ -85,9 +85,9 @@ export function googleFontHref(theme: Theme) { const { code, header, body } = theme.typography const headerFont = formatFontSpecification("header", header) const bodyFont = formatFontSpecification("body", body) - const codeFont = formatFontSpecification("code", code) - - return `https://fonts.googleapis.com/css2?family=${bodyFont}&family=${headerFont}&family=${codeFont}&display=swap` + const codeFont = formatFontSpecification("code", code)  + return `https://fonts.font.im/css2?family=${bodyFont}&family=${headerFont}&family=${codeFont}&display=swap`  + // return `https://fonts.googleapis.com/css2?family=${bodyFont}&family=${headerFont}&family=${codeFont}&display=swap`  } export interface GoogleFontFile {