style(font): modify font family setting in the global

This commit is contained in:
XPoet 2022-11-02 20:56:53 +08:00
parent 7ae0dabaa8
commit a180abc4f9
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ $dark-pjax-progress-bar-color = linear-gradient(45deg, #ea404a, #ea722f, #e9a71f
// ============================================================================================== // ==============================================================================================
// font settings // 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') $custom-font-family = hexo-config('style.font_family')
$default-font-family = $custom-font-family ? convert($custom-font-family) : $preset-font-family $default-font-family = $custom-font-family ? convert($custom-font-family) : $preset-font-family
$custom-font-size = hexo-config('style.font_size') $custom-font-size = hexo-config('style.font_size')