summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authoramzrk22020-06-01 21:49:10 +0800
committeramzrk22020-06-01 21:49:10 +0800
commitda23836b5dfe2d39cda0d89768dadd59b22a9baf (patch)
treea78f728fb3a335038a92fb14ad25df1678bec70a /README.md
parent02c3891865c7741b8f772aea75cc01564d2f0ff4 (diff)
downloadhugo-theme-fuji-da23836b5dfe2d39cda0d89768dadd59b22a9baf.tar.gz
hugo-theme-fuji-da23836b5dfe2d39cda0d89768dadd59b22a9baf.tar.bz2
hugo-theme-fuji-da23836b5dfe2d39cda0d89768dadd59b22a9baf.zip
DisqusJS support added
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 9 insertions, 2 deletions
diff --git a/README.md b/README.md
index 093748a..84df2dd 100644
--- a/README.md
+++ b/README.md
@@ -159,9 +159,16 @@ Set `customHighlight` to `true` in `config.toml`, then set `customHighlightURL`
Check [Getting highlight.js](https://highlightjs.org/download/) to download you own bundle of highlight.js.
-### Disqus identifier
+### Disqus
-Use the `[SITEROOT]/layouts/partials/comment-disqus.html` to cover `themes/fuji/layouts/partials/comment-disqus.html`.
+By default theme use these as identifier:
+
+```js
+this.page.url = {{ $.Permalink }};
+this.page.identifier = {{ $.File.ContentBaseName }};
+```
+
+Use the `[SITEROOT]/layouts/partials/comment-disqus.html` to cover `themes/fuji/layouts/partials/comment-disqus.html`. Then you can customize the url and identifier, or switch to DisqusJS for accessing from Mainland China. If you want to use DisqusJS, please also remember to set `useDisqusJS = true` in your `config.toml` to load CSS.
## Contributing