<linkrel="stylesheet"href="https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.1.0/style.css" /> <!-- Lite version --> <linkrel="stylesheet"href="https://cdn.jsdelivr.net/npm/lxgw-wenkai-lite-webfont@1.1.0/style.css" /> <!-- TC version --> <linkrel="stylesheet"href="https://cdn.jsdelivr.net/npm/lxgw-wenkai-tc-webfont@1.0.0/style.css" /> <!-- Screen version --> <linkrel="stylesheet"href="https://cdn.jsdelivr.net/npm/lxgw-wenkai-screen-webfont@1.1.0/style.css" />
放到themes/next/layout/_partials/head/head.swig中。
然后修改/themes/next/_config.yml:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
font: enable:true
# Uri of fonts host, e.g. https://fonts.googleapis.com (Default). host:fonts.ews1.com
# Font options: # `external: true` will load this font family from `host` above. # `family: Times New Roman`. Without any quotes. # `size: x.x`. Use `em` as unit. Default: 1 (16px)
# Global font settings used for all elements inside <body>. global: external:false family:LXGWWenKaiScreen size:
接着修改themes/next/source/css/_variables/base.styl:
1 2
// Font families. $font-family-chinese = "LXGW WenKai Screen";
接着hexo clean && hexo g -d && hexo s就可以发现改好了,速度还挺快的。