| | |
| | | CommentoURL = "https://commento.example.com/js/commento.js" |
| | | ``` |
| | | |
| | | ### Comments powered by Gitalk |
| | | No comment section is shown on the `single.html` unless a `repo` is specified in the `config.toml` file. If uncertain how parameter to configure, check out the official [documentation](https://github.com/gitalk/gitalk). |
| | | |
| | | ```toml |
| | | [params.gitalk] |
| | | clientID = "GitHub Application Client ID" |
| | | clientSecret = "GitHub Application Client Secret" |
| | | repo = "Repository name to store issues" |
| | | owner = "GitHub repo owner" |
| | | admin = "GitHub repo owner and collaborators, only these guys can initialize gitHub issues" |
| | | ``` |
| | | |
| | | ### Disabling Comments Per Page |
| | | |
| | | Comments can be disabled per page by setting `disableComments: true` on the pages [Front Matter](https://gohugo.io/content-management/front-matter/) |
| | |
| | | clientSecret: '{{ .Site.Params.Gitalk.clientSecret }}', |
| | | repo: '{{ .Site.Params.Gitalk.repo }}', |
| | | owner: '{{ .Site.Params.Gitalk.owner }}', |
| | | admin: ['{{ .Site.Params.Gitalk.owner }}'], |
| | | admin: ['{{ .Site.Params.Gitalk.admin }}'], |
| | | id: location.pathname, // Ensure uniqueness and length less than 50 |
| | | distractionFreeMode: false // Facebook-like distraction free mode |
| | | }); |