20d77860bRemove the calibre image action58f53654dImprove image metadata formatting (#1067)c569f3657Update theme80e6d362eUpdate themed5806cca5Update themeefc5cb227Remove broken link on "where" page (#1058)443266076Comments Alternatives (#1036)9b480ebb7Fix typo1402365eeFix included typo in build-options.md3b5a76de1Update index.md1196c7695Update index.md1887ea1edUpdate index.mdd0666e74eHugo 0.68.3d514cfac9Merge branch 'temp683'49e57362breleaser: Add release notes to /docs for release of 0.68.3fa0ac3bf1Merge branch 'temp682'46993c209Release 0.68.24c8d6d242releaser: Add release notes to /docs for release of 0.68.29694f4d36Update index.md368a03754Update index.md0d997010cMerge branch 'temp681'24138a9cdreleaser: Add release notes to /docs for release of 0.68.17dd6cc788Update index.mdb6125b4a8Update build-options.mda2dead37aRelease 0.68.07cff41348Merge branch 'temp680'b3b37959creleaser: Add release notes to /docs for release of 0.68.00f98184b0Some minify configuration adjustments02219f787Add minify configefeea7be0Allow headless bundles to list pages via $page.Pages and $page.RegularPages7950d0ad1Mention `resources` folder in the "Directory structure" docs. git-subtree-dir: docs git-subtree-split:20d77860b2
2.9 KiB
title, linktitle, description, date, publishdate, lastmod, keywords, categories, menu, weight, draft, aliases, toc
| 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_identifierdisqus_titledisqus_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)
- JustComments (Open Source, available as a service, can be self-hosted)