mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 10:54:06 -06:00
Update theme.ts
This commit is contained in:
parent
922b0e869a
commit
3ac57552b0
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user