Skip to content

Commit af91be6

Browse files
committed
尝试解决首页标题字体加载问题
1 parent 99a56a5 commit af91be6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docusaurus.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ module.exports = {
191191
//
192192
//'https://unpkg.com/video.js/dist/video-js.min.css',
193193
'https://cdn.jsdelivr.net/npm/video.js/dist/video-js.min.css',
194-
'https://cdn.jsdelivr.net/npm/@videojs/themes@1/dist/fantasy/index.css'
194+
'https://cdn.jsdelivr.net/npm/@videojs/themes@1/dist/fantasy/index.css',
195+
{
196+
href:'https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Bebas+Neue&family=Lato:wght@700&display=swap',
197+
rel:'preload',
198+
}
195199
]
196200
};

src/pages/styles.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
* CSS files with the .module.css suffix will be treated as CSS modules
55
* and scoped locally.
66
*/
7-
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
7+
8+
/* @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');*/
89

910

1011
:root {

0 commit comments

Comments
 (0)