Next7.8主题更换思源宋体

效果

image-20200801094412407

配置

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

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

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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

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