前言

众所周知,Butterfly在可以在 _config.yml 中用 font 配置全局的字体和代码大小,如下图所示:

# Global font settings
# Don't modify the following settings unless you know how they work
font:
global_font_size: 16px
code_font_size: 16px
font_family:
code_font_family:

# Font settings for the site title and site subtitle
blog_title_font:
font_link:
font_family:

但是一些更精细的调整就没有了。就比如我把全局大小设置成16px之后,我感觉我首页的副标题的中文字体有点大了,我想改小一点。

步骤

\themes\butterfly\layout\includes\header\index.pug 中搜索 site-subtitle 可以找到:

#site-subtitle
span#subtitle

添加 (style="font-size: 22px;") 即可,如下图所示:

#site-subtitle(style="font-size: 22px;")
span#subtitle

改之前:
Image 6

改之后:
Image 7