Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/amzrk2/hugo-theme-fuji.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramzrk2 <amzrk2@outlook.com>2020-06-02 07:57:59 +0300
committeramzrk2 <amzrk2@outlook.com>2020-06-02 07:57:59 +0300
commite6afd04368f56af57b77f71be4dda5a4d9279a64 (patch)
treed4b84c7fe71a2810b9f20620a85bd4f31f477549 /README_CN.md
parent5f049d78bf1a3fd020fe2725c46dbbb24ff7380e (diff)
CDN support added
Diffstat (limited to 'README_CN.md')
-rw-r--r--README_CN.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README_CN.md b/README_CN.md
index 6b5d027..2f2fe58 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -20,6 +20,7 @@
- [Markdown 钩子](#markdown-钩子)
- [这字体也太丑了,换掉](#这字体也太丑了换掉)
- [Disqus](#disqus)
+ - [通过 CDN 加载主 CSS 和 JS](#通过-cdn-加载主-css-和-js)
- [其他高级修改](#其他高级修改)
- [批判一番和贡献代码](#批判一番和贡献代码)
- [License](#license)
@@ -134,6 +135,10 @@ this.page.identifier = {{ $.File.ContentBaseName }};
使用 `[SITEROOT]/layouts/partials/comment-disqus.html` 来覆盖 `themes/fuji/layouts/partials/comment-disqus.html`。可在此文件内自定义指定的 url 和 identifier,同时也可以切换成 DisqusJS,具体实现可以参考这里。注意如果使用 DisqusJS,将 `config.toml` 内的 `useDisqusJS = true` 解除注释来加载 CSS。
+### 通过 CDN 加载主 CSS 和 JS
+
+如果你不需要自行修改 CSS 和 JS,可以将 `config.toml` 内的 `mainAssetsCDN = true` 解除注释。`fuji.min.css` 和 `fuji.min.js` 将会从 jsDelivr 加载。
+
### 其他高级修改
见[批判一番和贡献代码](#批判一番和贡献代码)。