hexo-修改外链字体库

People who are crazy enough to think they can change the world, are the ones who do.
Apple Computers

当博客使用Hexo搭建在Github Page上的时候,可能会访问慢,

有一个原因是因为fonts.googleapis.com在有些地区不能正常加载,导致了渲染阻塞

方法:

把在NexT主题的配置文件_config.yml里面的:

1
2
3
4
font:
enable: true
# 外链字体库地址,例如 //fonts.googleapis.com (默认值)
host:

改为:

1
2
3
4
5
6
7
8
font:
enable: true
# 外链字体库地址,例如 //fonts.googleapis.com (默认值)
# Uri of fonts host. E.g. //fonts.googleapis.com (Default)
# fonts.lug.ustc.edu.cn是中科大的源,解决Hexo NexT主题访问慢
# host: //fonts.lug.ustc.edu.cn
host: https://fonts.loli.net

效果演示:

gif008.gif