Update theme.ts

This commit is contained in:
enneaa 2025-03-18 21:04:04 +08:00 committed by GitHub
parent 922b0e869a
commit 3ac57552b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {