Next7.8主题更换思源宋体


效果

image-20200801094412407

配置

Google Fonts在2018年12月7日支持思源宋体。这是一款适合长时间阅读的字体。

国内的网络对 Google 的域名并不友好,建议将fonts.googleapis.com修改为烧饼博客提供的镜像fonts.loli.net>

Next7.8主题配置文件_config.yml

font:
  enable: true

  # Uri of fonts host, e.g. https://fonts.googleapis.com (Default).
  # 使用烧饼博客的CDN
  host: https://fonts.loli.net

  # Font options:
  # `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: EB Garamond
    family: Noto Serif SC
    size: 0.9

  # Font settings for site title (.site-title).
  # .site-title 站点标题字体设置
  title:
    external: true
    family: Lobster Two
    size:

  # Font settings for headlines (<h1> to <h6>).
  # 文章标题字体设置
  headings:
    external: true
    #family: Roboto Slab
    family: EB Garamond
    size:

  # Font settings for posts (.post-body).
  # 文章页面字体设置
  posts:
    external: true
    #family: Roboto Slab

  # Font settings for <code> and code blocks.
  # 代码块字体设置
  codes:
    external: true
    family: Source Code Pro

改为我上面的配置就可以了。解释说明已经在上方注释,按需修改。


版权属于:Heson

本文链接:https://www.heson10.com/posts/19246.html


—— 评论区 ——