From a180abc4f908634d2a9ad3f4c265d45aa79c2495 Mon Sep 17 00:00:00 2001 From: XPoet Date: Wed, 2 Nov 2022 20:56:53 +0800 Subject: [PATCH] style(font): modify font family setting in the global --- source/css/common/variables.styl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/css/common/variables.styl b/source/css/common/variables.styl index c7283e9..0ea8478 100644 --- a/source/css/common/variables.styl +++ b/source/css/common/variables.styl @@ -152,7 +152,7 @@ $dark-pjax-progress-bar-color = linear-gradient(45deg, #ea404a, #ea722f, #e9a71f // ============================================================================================== // font settings // ============================================================================================== -$preset-font-family = Optima-Regular, Optima, -apple-system, system-ui, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial +$preset-font-family = Optima-Regular, Optima, PingFang SC, Microsoft YaHei, sans-serif $custom-font-family = hexo-config('style.font_family') $default-font-family = $custom-font-family ? convert($custom-font-family) : $preset-font-family $custom-font-size = hexo-config('style.font_size')