diff options
author | amzrk2 | 2020-06-03 13:58:49 +0800 |
---|---|---|
committer | amzrk2 | 2020-06-03 13:58:49 +0800 |
commit | 3df71601ae866aff9c2ae060ed1ac7407807fcc4 (patch) | |
tree | ad34004b865f43aecf43d111b5586f592a1e05ba /README.md | |
parent | e6afd04368f56af57b77f71be4dda5a4d9279a64 (diff) | |
download | hugo-theme-fuji-3df71601ae866aff9c2ae060ed1ac7407807fcc4.tar.gz hugo-theme-fuji-3df71601ae866aff9c2ae060ed1ac7407807fcc4.tar.bz2 hugo-theme-fuji-3df71601ae866aff9c2ae060ed1ac7407807fcc4.zip |
New comment area & opt out of font awesome
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -18,7 +18,7 @@ Fuji is a minimal Hugo theme with full dark mode support and GitHub Primer markd - [APlayer](#aplayer) - [Image zoom and lazyload settings](#image-zoom-and-lazyload-settings) - [Markdown render hook](#markdown-render-hook) - - [Disqus](#disqus) + - [Comments area](#comments-area) - [Load main CSS und JS from CDN](#load-main-css-und-js-from-cdn) - [Advanced configuration](#advanced-configuration) - [Report und contributing](#report-und-contributing) @@ -133,16 +133,18 @@ You can use `[SITEROOT]/layouts/_default/_markup/render-link.html` to decide whe <a href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text | safeHTML }}</a> ``` -### Disqus +### Comments area -By default theme use these as identifier: +主题支持三种评论系统,Disqus、utterances 和 DisqusJS (给大陆用户的)。 -```js -this.page.url = {{ $.Permalink }}; -this.page.identifier = {{ $.File.ContentBaseName }}; -``` +对于 Disqus 默认情况下使用 `{{ .Permalink }}` 作为 `url`,使用 `{{ .File.ContentBaseName }}` 作为 `identifier`。 + +Use the `[SITEROOT]/layouts/partials/comment-*.html` to cover `themes/fuji/layouts/partials/comment-*.html`. Then you can customize the url and identifier, or set multiple api key for using DisqusJS. If you want to use DisqusJS, please remember to set `disqusJSApi` to anything in your `config.toml` to load CSS. + +You can check my blog for example of using DisqusJS, remember to set to your own key when deploing: -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. +- [`config.toml`]() +- [`comment-disqusjs.html`]() ### Load main CSS und JS from CDN |