mirror of
https://github.com/kbenestad/mdcms.git
synced 2026-06-18 15:24:32 +00:00
Change default font provider from Google to Bunny Fonts
Font specs without an explicit provider prefix now route to Bunny Fonts instead of Google Fonts, avoiding Google CDN requests by default. https://claude.ai/code/session_01PTQoBgxUeXHkZkdgHbafAE
This commit is contained in:
parent
cfe11cd24b
commit
c77e423bdd
1 changed files with 2 additions and 2 deletions
|
|
@ -1367,8 +1367,8 @@ body {
|
|||
if (!spec) return null;
|
||||
const parts = spec.split(':');
|
||||
if (parts.length >= 3) return { provider: parts[0].trim(), name: parts.slice(1, -1).join(':').trim(), weight: parts[parts.length - 1].trim() };
|
||||
if (parts.length === 2) return { provider: 'google', name: parts[0].trim(), weight: parts[1].trim() };
|
||||
return { provider: 'google', name: parts[0].trim(), weight: '400' };
|
||||
if (parts.length === 2) return { provider: 'bunny', name: parts[0].trim(), weight: parts[1].trim() };
|
||||
return { provider: 'bunny', name: parts[0].trim(), weight: '400' };
|
||||
}
|
||||
|
||||
const src = tc || {};
|
||||
|
|
|
|||
Loading…
Reference in a new issue