# Global font settings # Don't modify the following settings unless you know how they work (非必要不要修改) font: global-font-size: 16px code-font-size: font-family: code-font-family: consolas, Menlo, "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif
# Font settings for the site title and site subtitle # 左上角网站名字 主页居中网站名字 blog_title_font: font_link: font-family: PingFang SC, 'Hiragino Sans GB', 'Microsoft JhengHei', 'Microsoft YaHei', sans-serif
在其中修改 font-family , 两个都需要修改,最后修改的样式为
1 2 3 4 5 6 7 8 9 10 11 12 13
# Global font settings # Don't modify the following settings unless you know how they work (非必要不要修改) font: global-font-size: 16px code-font-size: font-family: 'HuangkaihuaLawyerFont' code-font-family: consolas, Menlo, "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif
# Font settings for the site title and site subtitle # 左上角网站名字 主页居中网站名字 blog_title_font: font_link: font-family: 'HuangkaihuaLawyerFont'
这里的 HuangkaihuaLawyerFont 应该填写在CSS 文件中所引入的名称
3.结束语
最后 Hexo 三连(hexo cl && hexo g && hexo s)就可以看到文章开始页面顶部的效果。