Debian Codegraph @

docs/content/en/content-management/comments.md

raw
1 ---
2 title: Comments
3 description: Hugo ships with an embedded Disqus partial, but this isn't the only commenting system that will work with your new Hugo website.
4 categories: []
5 keywords: []
6 aliases: [/extras/comments/]
7 ---
8
9 Hugo ships with support for [Disqus][], a third-party service that provides comment and community capabilities to websites via JavaScript.
10
11 Your theme may already support Disqus, but if not, it is easy to add to your templates via Hugo's [embedded partial][].
12
13 ## Add Disqus
14
15 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][].
16
17 ### Configure Disqus
18
19 Disqus comments require you set a single value in your project configuration:
20
21 {{< code-toggle file=hugo >}}
22 [services.disqus]
23 shortname = 'your-disqus-shortname'
24 {{</ code-toggle >}}
25
26 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:
27
28 - `params.disqus_identifier`
29 - `params.disqus_title`
30 - `params.disqus_url`
31
32 ### Render Hugo's embedded Disqus partial
33
34 To render it, add the following code where you want comments to appear:
35
36 ```go-html-template
37 {{ partial "disqus.html" . }}
38 ```
39
40 ## Alternatives
41
42 Commercial commenting systems:
43
44 - [Commentix][]
45 - [Emote][]
46 - [FastComments][]
47 - [Graph Comment][]
48 - [Hyvor Talk][]
49 - [IntenseDebate][]
50 - [ReplyBox][]
51
52 Open-source commenting systems:
53
54 - [Cactus Comments][]
55 - [Comentario][]
56 - [Comma][]
57 - [Discourse][]
58 - [Giscus][]
59 - [Isso][]
60 - [Remark42][]
61 - [Staticman][]
62 - [Talkyard][]
63 - [Utterances][]
64 - [Zoomment][]
65
66 [Cactus Comments]: https://cactus.chat/docs/integrations/hugo/
67 [Comentario]: https://gitlab.com/comentario/comentario/
68 [Comma]: https://github.com/Dieterbe/comma/
69 [Commentix]: https://www.commentix.com/
70 [Discourse]: https://meta.discourse.org/t/embed-discourse-comments-on-another-website-via-javascript/31963
71 [Disqus]: https://disqus.com/
72 [Emote]: https://emote.com/
73 [FastComments]: https://fastcomments.com/commenting-system-for-hugo
74 [Giscus]: https://giscus.app/
75 [Graph Comment]: https://graphcomment.com/
76 [Hyvor Talk]: https://talk.hyvor.com/
77 [IntenseDebate]: https://intensedebate.com/
78 [Isso]: https://isso-comments.de/
79 [Remark42]: https://remark42.com/
80 [ReplyBox]: https://getreplybox.com/
81 [Staticman]: https://staticman.net/
82 [Talkyard]: https://blog-comments.talkyard.io/
83 [Utterances]: https://utteranc.es/
84 [Zoomment]: https://zoomment.com/
85 [embedded partial]: /templates/embedded/#disqus
86 [set up an account]: https://disqus.com/profile/signup/