Next版本为7.8.0,找到 /themes/next/_config.yml 文件,搜索 font 关键词,这里注意一定要将 font 里面的 enable 设置为true, 因为默认为false,然后设置 family 为自己想要的,如果family在其他平台找的,就需要修改host。(只是修改了family, 没修改enable就会不生效,所以一定一定要记得)
# Uriof fonts host, e.g. https://fonts.googleapis.com (Default). host:
# Fontoptions: # `external: true` will load this font family from`host` above. # `family: Times New Roman`. Without any quotes. # `size: x.x`. Use`em`as unit. Default: 1 (16px)
# Global font settings used for all elements inside <body>. global: external: true family: NotoSerifSC size:
# Font settings for site title (.site-title). title: external: true family: NotoSerifSC size:
# Font settings forheadlines (<h1> to <h6>). headings: external: true family: NotoSerifSC size:
# Font settings forposts (.post-body). posts: external: true family: NotoSerifSC
# Font settings for <code> and code blocks. codes: external: true family: SourceCodePro
codeblock: # CodeHighlight theme # Availablevalues: normal | night | night eighties | night blue | night bright | solarized | solarized dark | galactic # See: https://github.com/chriskempson/tomorrow-theme highlight_theme: night eighties # Add copy button on codeblock copy_button: enable: true # Show text copy result. show_result: true # Availablevalues: default | flat | mac style: mac