【发布时间】:2020-01-20 22:53:18
【问题描述】:
我已经建立了一个“美丽的 Jekyll”博客/GitHub 页面,我想更改页面标题和副标题的字体颜色。但是我在main.css中找不到合适的地方
以下是网站示例:
https://deanattali.com/beautiful-jekyll/
这里是 GitHub 页面:
https://github.com/daattali/beautiful-jekyll
我查看了index.html、config.yml 和css 文件夹,但找不到更改颜色的位置。
我想改变文字的颜色:
Beautiful Jekyll
Build a beautiful and simple website in minutes
编辑:我有以下内容:
我拥有的main.css 文件的第 24 行到第 35 行:
h1,h2,h3,h4,h5,h6 {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 800;
}
a {
color: {{ site.link-col }};
}
.header_class {
color: red;
}
在我拥有的index.html 文件的第 28 行:
<h1 class="header_class">{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
哪个有效。
【问题讨论】: