a393f4cf4 Add a Spellcheck GitHub Action and config 8b6b1c381 netlify: Bump to Hugo 0.93.3 84515c183 Delete deployment-with-nanobox.md dd45f9899 Fix typos in docs e69de81a9 Update build-options.md 7745b7891 netlify: Hubo 0.93.2 037d63364 Clarify GitHub Pages Branches 94660c34b add missing %s 325de15e2 fix link to latest release note since the release notes were moved to GitHub: https://gohugo.io/news/no-more-releasenotes-here/ dbff41d01 Update introduction.md 0ecd627f7 netlify: Hugo 0.93.1 a74e16582 Update diagrams.md 33e310956 Add Goat example to test styling fa0100a5b Update diagrams.md 64ac75367 Adjust diagram docs f1d600044 Update theme 95bedff1a netlify: Bump to Hugo 0.93.0 849a8437f Merge commit 'c1398b91a9f4c67876b31feb67516b252e654d3c' c0c60c43c docs: Regenerate docs helper 2c63fe518 cod: Regen CLI docs f33ba4e5a CodeblockContext method renames 979b47968 Move the Goat template to the correct place 2df37e9e8 Add Markdown diagrams and render hooks for code blocks bd8037d43 Allow images to be cropped without being resized 8b2af4b49 modules: Add modules.Workspace config for Go 1.18 46b99dea1 Add --printUnusedTemplates 1285302c9 commands: Rename --i18n-warnings to printI18nWarnings dea2242c6 commands: Rename --path-warnings, --print-men to --printPathWarnings, --printMemoryUsage db782ea46 deps: Update github.com/alecthomas/chroma v0.9.4 => v0.10.0 git-subtree-dir: docs git-subtree-split: a393f4cf43829011e96d109de2f039a9b05b2d16
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 = "yourDisqusShortname" {{</ 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" . }}
Alternatives
These are some alternatives to Disqus:
- Cactus Comments (Open Source, Matrix appservice, Docker install)
- Commento (Open Source, available as a service, local install, or docker image)
- Graph Comment
- Hyvor Talk (Available as a service)
- IntenseDebate
- Isso (Self-hosted, Python) (tutorial)
- Muut
- Remark42 (Open source, Golang, Easy to run docker)
- Staticman
- Talkyard (Open source, & serverless hosting)
- Utterances (Open source, GitHub comments widget built on GitHub issues)