Permalink
Browse files

use local font in place of cdn font:

  • Loading branch information...
1 parent 387bb8b commit 566c70471be1cd79d2dc2b8bba4b2b6cb6384108 @pinggod committed Jul 20, 2016
View
@@ -19,8 +19,3 @@ ga: UA-65933410-1
# Copyright Infomation
startyear: 2015
-
-# Font CDN
-#true : use google fonts api, not stable for chinese visitor sometimes, caused by force majeure factor
-#false: use useso fonts api instead of google's, great response speed for chinese visitor
-googlefonts: true
@@ -14,7 +14,3 @@ link(rel="stylesheet", href=url_for("css/apollo.css"))
- var xml = config.url + '/atom.xml'
link(rel="search", type="application/opensearchdescription+xml", href=xml, title=config.title)
-if theme.googlefonts
- link(rel="stylesheet", href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600" type='text/css')
-else
- link(rel="stylesheet", href="http://fonts.useso.com/css?family=Source+Sans+Pro:400,600" type='text/css')
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
@@ -14,7 +14,7 @@ body {
font-size: 15px;
line-height: 1.6;
background-color: #fff;
- font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
+ font-family: 'sourcesanspro', 'Helvetica Neue', Arial, sans-serif;
}
ul.nav,
@@ -8,4 +8,12 @@
@import "_partial/post";
@import "_partial/footer";
@import "_partial/mq";
-@import "_partial/copyright";
+@import "_partial/copyright";
+
+@font-face {
+ font-family: 'sourcesanspro';
+ src: url('/font/sourcesanspro.woff2') format('woff2'),
+ url('/font/sourcesanspro.woff') format('woff');
+ font-weight: normal;
+ font-style: normal;
+}

0 comments on commit 566c704

Please sign in to comment.