如何更改jekyll中的标题标题大小。主题?

发布于 2025-02-10 23:06:04 字数 260 浏览 0 评论 0原文

我想在“ Time Machine”主题中更改标题标题太大的字体大小,但正在努力寻找正确的CSS部分。

我集成到我的GitHub存储库中的四个SCSS文件是(建议):

jekyll-theme-time-machine.scss
normalize.scss
rouge-base16-dark.scss
time-machine.scss

不幸的是,在搜索“标题”或“ header”时,我找不到标题字体大小的设置。谁能帮忙?

I would like to change the much too big font size of my header title in the "Time Machine" theme but am struggling to find the right (S)CSS section.

The four scss files I have integrated into my GitHub repository are (as recommended):

jekyll-theme-time-machine.scss
normalize.scss
rouge-base16-dark.scss
time-machine.scss

Unfortunately, I could not find any setting for title font size when searching for "title" or "header". Can anyone help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

凉城 2025-02-17 23:06:04

在时间机器Jekyll主题源代码中,您可以在time-machine/_sass/jekyll-theme-theme-time-machine.scss.scss中找到标题样式。

这是标题样式的直接链接: https://github.com/pages-themes/time-machine/blob/3058bb3387eddf03eccad3f2397bc82766666f52e8/

In the Time Machine Jekyll theme source code, you can find the title styling in time-machine/_sass/jekyll-theme-time-machine.scss.

Here is a direct link to the styling for the title: https://github.com/pages-themes/time-machine/blob/3058bb3387eddf03eccad3ff2397bc82766f52e8/_sass/jekyll-theme-time-machine.scss#L28-L35

一梦浮鱼 2025-02-17 23:06:04

标题大小未在scss文件中定义,而是default.html file in _layouts中的文件:

<header>
      <h1 class="title">{{ site.title | default: site.github.repository_name }}</h1>
</header>

这意味着将标题从&lt; h1&gt; 到&lt; h2&gt;标题使字体较小。

The header size is not defined in the scss files but in the default.html file in _layouts:

<header>
      <h1 class="title">{{ site.title | default: site.github.repository_name }}</h1>
</header>

This means that changing the headline from <h1> to a <h2> headline makes the font smaller.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文