<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                >[danger] **棄用提醒:** > *由于看云對于免費用戶的限制愈發嚴苛,本文檔已經遷移至語雀。本文檔將不做維護。* > **語雀地址**:[https://www.yuque.com/a632079/nodebb](https://www.yuque.com/a632079/nodebb) ***** 現在國內的Google字體庫鏡像中最好用的就是中科大的了,鏈接是:https://lug.ustc.edu.cn/wiki/lug/services/googlefonts,你會看到`fonts.googleapis.com`對應于`fonts.lug.ustc.edu.cn`這個加速鏈接。 ### 修改方法: 以默認主題為例,在`nodebb/node_modules/nodebb-theme-persona/less/style.less`文件中有一條字體地址:`https://fonts.googleapis.com/css?family=Roboto:300,400,500,700`,將`fonts.googleapis.com`替換成`fonts.lug.ustc.edu.cn`就可以了。 注意,`1.4.x`版本在修改完這些`CSS`資源后需要手動運行`./nodebb build`編譯一下才可以,不然的話`NodeBB`運行中依然不會去使用你修改之后的`CSS`。具體參見官方說明:[Introducing the build system in v1.4.x](https://blog.nodebb.org/introducing-the-build-system-in-v1-4-3/)。 可能這時候已經找不到`fonts.googleapis.com`但是網站還是還會加載谷歌字體,原因是`bootswatch`這個在搞鬼,它會動態加載谷歌字體 進入nodebb目錄下,用`grep -rn "maxcdn.bootstrapcdn.com/bootswatch/latest/" .|grep -v "build"|grep -v "test"` 查找出 nodebb 1.5.2版本有兩個地方需要更改 ``` ./src/middleware/header.js #220行 ./public/src/client/account/settings.js #58行 ``` 因為是跟皮膚(Skin)關聯的,需要下載多個css文件,根據主題個數一個一個下吧??,我偷懶只下了三個。下載下來之后把第一行的 `@import url("https://fonts.googleapis.com.....`刪掉或者替換為中科大的 我的配置如下: 本地css文件 ``` public/css └── bootswatch └── latest ├── darkly │?? └── bootstrap.min.css ├── lumen │?? └── bootstrap.min.css └── united └── bootstrap.min.css ``` 上面兩個js路徑更改為: ``` 55 if (skinName === 'default') { 56 skinName = config.defaultBootswatchSkin; 57 } 58 var cssSource = '/assets/bootswatch/latest/' + skinName + '/bootstrap.min.css'; 59 if (css.length) { 60 css.attr('href', cssSource); 61 } else { 62 css = $('<link id="bootswatchCSS" href="' + cssSource + '" rel="stylesheet" media="screen">'); 63 $('head').append(css); 64 } ``` >[info] 編寫: [0312birdzhang](https://github.com/0312birdzhang) 維護: PA Team 審核: PA Team & NodeBB China 最后更新: 2017.08.08
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看