Hexo-theme-next: 建议将字体等带google的替换成中科大的库

Created on 8 Apr 2016  ·  6Comments  ·  Source: iissnan/hexo-theme-next

因为中科大的库是完全镜像,速度很快,并且支持https

Most helpful comment

试着修改为科大的字体库,发现配置不起作用,检查元素还是使用的google的,然后检查了下,提交了pull request。

All 6 comments

试试 升级到最新的版本 (master),可以自定义字体使用的 cdn 源。例如我现在使用的配置:

# ---------------------------------------------------------------
# Font Settings
# - All fonts set here will have the following styles:
#     light, light italic, normal, normal intalic, bold, bold italic
# - Be aware that setting too much fonts will cause site running slowly
# - Introduce in 5.0.1
# ---------------------------------------------------------------
font:
  enable: true

  # Uri of fonts host. E.g. //fonts.googleapis.com (Default)
  host:

  # Global font settings used on <body> element.
  global:
    # external: true will load this font family from host.
    external: true
    family: Monda

  # Font settings for Headlines (h1, h2, h3, h4, h5, h6)
  # Fallback to `global` font settings.
  heading:
    external: true
    family:

  # Font settings for posts
  # Fallback to `global` font settings.
  post:
    external: true
    family:

  # Font settings for Logo
  # Fallback to `global` font settings.
  logo:
    external: true
    family: Lobster Two
    size: 24

  # Font settings for <code> and code blocks.
  code:
    external: true
    family: PT Mono

这个好 期待更新!

中科大的Google字体库不是早挂了吗?

@80imike master 分支已经有包含这个定制功能。
@meritozh 之前碰到过一次挂了。另外 Google Fonts 似乎也不是太稳定(虽然我没碰到过),因此决定增加这个设定选项。

试着修改为科大的字体库,发现配置不起作用,检查元素还是使用的google的,然后检查了下,提交了pull request。

@iissnan 请问您楼上po出的配置就是目前 https://notes.iissnan.com/ 这个站的配置文件吗?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ifyour picture ifyour  ·  4Comments

payne4handsome picture payne4handsome  ·  4Comments

syscca picture syscca  ·  4Comments

DVD0423 picture DVD0423  ·  3Comments

LionWY picture LionWY  ·  3Comments