Skip to content

Commit 2b42f48

Browse files
author
Ethan Jon
committed
webfont loader (reverted from commit dfc7dbc)
1 parent 0115b0f commit 2b42f48

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

react/pages/_document.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ class Document extends NextDocument {
2727
name='viewport'
2828
/>
2929

30-
<script src='https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js' />
31-
<script dangerouslySetInnerHTML={{__html: 'WebFont.load({google: {families: ["Lora:400,700", "Overpass:400,800"]}})'}} />
30+
<link
31+
href='https://fonts.googleapis.com/css?family=Lora:400,700|Overpass:400,800'
32+
rel='stylesheet'
33+
/>
3234

3335
{favicons(siteData.images)}
3436

0 commit comments

Comments
 (0)