mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -06:00
Refined font inclusion logic
This commit is contained in:
parent
594b6a7b58
commit
2d8505a538
@ -95,7 +95,7 @@ export function googleFontHref(theme: Theme, text: string): string[] {
|
||||
`https://fonts.googleapis.com/css2?family=${headerFont}&family=${bodyFont}&family=${codeFont}&display=swap`,
|
||||
]
|
||||
|
||||
if (titleFont !== headerFont) {
|
||||
if (titleFont !== headerFont && titleFont !== bodyFont && titleFont !== codeFont) {
|
||||
hrefs.push(`https://fonts.googleapis.com/css2?family=${titleFont}&text=${encodeURIComponent(text)}&display=swap`)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user