如何更改Jekyll网站的默认字体 [英] How can I change the default font for a Jekyll website
本文介绍了如何更改Jekyll网站的默认字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚开始使用Jekyll,css等,因此我分叉了 Jekyll 回购。有什么方法可以更改或添加整个jekyll网站的默认字体?看起来此帖子可能有一些答案,但我不是真的
I'm new to using Jekyll, css, etc, and I forked the Jekyll now repo. Is there a way I can change, or add, default fonts to the entire jekyll website? It looks like this post may have some answers, but I don't really understand it.
推荐答案
编辑文件 style.scss
body {
...
font: 18px/1.4 $helvetica;
}
为此:
body {
font-family: "Times New Roman", Times, serif;
}
或您想要的任何字体。
如果您想使其更好,请使用变量,将其添加到 _sass / _variables.css
If you want to make it better, use variables, add them to _sass/_variables.css
$times: "Times New Roman", sans-serif;
然后更改 style.scss
:
body {
font: 18px/1.4 $times;
}
这篇关于如何更改Jekyll网站的默认字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文