9be494de3 Clean up the markup config c3e123133 Remove JustComment bc1b02bc5 Add Smart to Anchor section 49e796409 Added where .RegularPagesRecursive was added a92296e31 Fixed the new-in shortcode in pages-vs-site-pages 051e1267c Documented .RegularPagesRecursive 5bcec88a3 Fix broken link in RSS templates page 3db79d433 Correct pull request link on migrations.md 55c347168 Release 0.71.1 11a4e36c3 Merge branch 'temp711' 481fc8ed6 releaser: Add release notes to /docs for release of 0.71.1 40ba83c26 Update site.md 382632b58 Use-modules: More help how to get started importing a theme (#1107) 06751d465 Addition of hugefastsearch to search options (#1118) 8346d3b18 Add example of how to set the permalinks option for pages in "root" ebb3b4f3a Refine highlight shortcode options 1075a172a Update index.md 7cc927ea6 Fix typo in v0.71.0 release notes 4121da273 Pull in latest theme version to get link hooks 4809be651 Document render-heading feature 2078a3bd1 Release 0.71.0 c09f6899e releaser: Add release notes to /docs for release of 0.71.0 90ffe2b50 Merge commit 'c9403cbceaaeff53ff4833561f4eefe1dc1a405e' bf3dd0837 Add math.Pow git-subtree-dir: docs git-subtree-split: 9be494de3ac79081be60e0f002db110cb96ec7a3
2.9 KiB
title | linktitle | description | date | publishdate | lastmod | keywords | categories | menu | weight | draft | aliases | toc | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Comments | Comments | Hugo ships with an internal Disqus template, but this isn't the only commenting system that will work with your new Hugo website. | 2017-02-01 | 2017-02-01 | 2017-03-09 |
|
|
|
140 | false |
|
true |
Hugo ships with support for Disqus, a third-party service that provides comment and community capabilities to websites via JavaScript.
Your theme may already support Disqus, but if not, it is easy to add to your templates via Hugo's built-in Disqus partial.
Add Disqus
Hugo comes with all the code you need to load Disqus into your templates. Before adding Disqus to your site, you'll need to set up an account.
Configure Disqus
Disqus comments require you set a single value in your site's configuration file like so:
{{< code-toggle copy="false" >}} disqusShortname = "yourdiscussshortname" {{</ code-toggle >}}
For many websites, this is enough configuration. However, you also have the option to set the following in the front matter of a single content file:
disqus_identifier
disqus_title
disqus_url
Render Hugo's Built-in Disqus Partial Template
Disqus has its own internal template available, to render it add the following code where you want comments to appear:
{{ template "_internal/disqus.html" . }}
Comments Alternatives
There are a few alternatives to commenting on static sites for those who do not want to use Disqus:
- Staticman
- Talkyard (Open source, & serverless hosting)
- IntenseDebate
- Graph Comment
- Muut
- isso (Self-hosted, Python)
- Utterances (Open source, GitHub comments widget built on GitHub issues)
- Remark (Open source, Golang, Easy to run docker)
- Commento (Open Source, available as a service, local install, or docker image)
- Hyvor Talk (Available as a service)