diff options
author | amzrk2 | 2020-06-01 21:49:10 +0800 |
---|---|---|
committer | amzrk2 | 2020-06-01 21:49:10 +0800 |
commit | da23836b5dfe2d39cda0d89768dadd59b22a9baf (patch) | |
tree | a78f728fb3a335038a92fb14ad25df1678bec70a /README.md | |
parent | 02c3891865c7741b8f772aea75cc01564d2f0ff4 (diff) | |
download | hugo-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.md | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 |