Ryan Wang's Blog

Ryan Wang

瞬间

  • Ryan Wang

    试了一下在网站设置 https://github.com/lxgw/LxgwWenKai 字体,还挺好看。如果你也需要,可以在系统设置的代码注入里添加:

    <link rel="stylesheet" href="https://cdn.staticfile.net/lxgw-wenkai-webfont/1.7.0/style.css" />
    <style>
      body,#post-content,.markdown-body {
        font-family: "LXGW WenKai",PingFang SC,Hiragino Sans GB,Droid Sans Fallback,Microsoft YaHei,sans-serif !important;
      }
    
      :root {
        --halo-comment-widget-base-font-family: "LXGW WenKai",PingFang SC,Hiragino Sans GB,Droid Sans Fallback,Microsoft YaHei,sans-serif !important;
        --halo-search-widget-base-font-family: "LXGW WenKai",PingFang SC,Hiragino Sans GB,Droid Sans Fallback,Microsoft YaHei,sans-serif !important;
      }
    </style>

    部分 CSS 选择器是针对 Walker 主题的,使用的时候可以按需修改。

    杂记

    9
    7
    2024-04-25