summaryrefslogtreecommitdiffstats
path: root/README_CN.md
diff options
context:
space:
mode:
Diffstat (limited to 'README_CN.md')
-rw-r--r--README_CN.md18
1 files changed, 10 insertions, 8 deletions
diff --git a/README_CN.md b/README_CN.md
index 2f2fe58..a3d006e 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -19,7 +19,7 @@
- [图片放大的设置和 lazyload](#图片放大的设置和-lazyload)
- [Markdown 钩子](#markdown-钩子)
- [这字体也太丑了,换掉](#这字体也太丑了换掉)
- - [Disqus](#disqus)
+ - [评论区](#评论区)
- [通过 CDN 加载主 CSS 和 JS](#通过-cdn-加载主-css-和-js)
- [其他高级修改](#其他高级修改)
- [批判一番和贡献代码](#批判一番和贡献代码)
@@ -124,16 +124,18 @@ playerCover = "..." # 封面
<a href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text | safeHTML }}</a>
```
-### Disqus
+### 评论区
-默认情况下主题使用以下设置:
+主题支持三种评论系统,Disqus、utterances 和 DisqusJS (给大陆用户的)。
-```js
-this.page.url = {{ $.Permalink }};
-this.page.identifier = {{ $.File.ContentBaseName }};
-```
+对于 Disqus 默认情况下使用 `{{ .Permalink }}` 作为 `url`,使用 `{{ .File.ContentBaseName }}` 作为 `identifier`。
+
+使用 `[SITEROOT]/layouts/partials/comment-*.html` 来覆盖 `themes/fuji/layouts/partials/comment-*.html`。可在此文件内自定义指定的 url 和 identifier,或者为 DisqusJS 设置多个 api key。注意如果使用 DisqusJS,将 `config.toml` 内的 `disqusJSApi` 解除注释来加载 CSS。
+
+可以参考 Demo 的设置作为使用 DisqusJS 的例子,记得最后部署时候修改为自己的设置和 key 哦:
-使用 `[SITEROOT]/layouts/partials/comment-disqus.html` 来覆盖 `themes/fuji/layouts/partials/comment-disqus.html`。可在此文件内自定义指定的 url 和 identifier,同时也可以切换成 DisqusJS,具体实现可以参考这里。注意如果使用 DisqusJS,将 `config.toml` 内的 `useDisqusJS = true` 解除注释来加载 CSS。
+- [`config.toml`]()
+- [`comment-disqusjs.html`]()
### 通过 CDN 加载主 CSS 和 JS