Skip to content

Commit a7d9b56

Browse files
committed
docs: avoid loading fa web fonts when not needed
1 parent e9fe8f3 commit a7d9b56

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/.vitepress/theme/styles.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:[email protected]&display=swap');
2-
31
:root:where(:lang(fa)) {
42
--vp-font-family-base:
53
'Vazirmatn', 'Inter', ui-sans-serif, system-ui, sans-serif,

docs/fa/config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ export default defineAdditionalConfig({
99
description: 'ژنراتور استاتیک وب‌سایت با Vite و Vue',
1010
dir: 'rtl',
1111

12+
// prettier-ignore
13+
head: [
14+
['link', { rel: 'preconnect', href: 'https://fonts.googleapis.com' }],
15+
['link', { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }],
16+
['link', { href: 'https://fonts.googleapis.com/css2?family=Vazirmatn:[email protected]&display=swap', rel: 'stylesheet' }],
17+
],
18+
1219
themeConfig: {
1320
nav: nav(),
1421

0 commit comments

Comments
 (0)