Welcome to mirror list, hosted at ThFree Co, Russian Federation.

comments.md « extras « content « docs - github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3ff95134be6e524c982720e9627cab1bff51b5dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
title: "Comments in Hugo"
linktitle: "Comments"
date: "2014-05-26"
weight: 14
menu:
  main:
    parent: 'extras'
prev: "/extras/builders"
next: "/extras/livereload"
---

As Hugo is a static site generator, the content produced is static and
doesn’t interact with the users. The most common interaction people ask
for is comment capability.

Hugo ships with support for [disqus](http://disqus.com), a third party
service that provides comment and community capabilities to website via
javascript.

Your theme may already support disqus, but even it if doesn’t it is easy
to add.

# Disqus Support

## Adding Disqus to a template

Hugo comes with all the code you would need to include load disqus.
Simply include the following line where you want your comments to appear

    {{ template "_internal/disqus.html" . }}


## Configuring Disqus

That template requires you to set a single value in your site config file, eg. config.yaml.

    disqusShortname = "XYW"

Additionally you can optionally set the following in the front matter
for a given piece of content

 * **disqus_identifier**
 * **disqus_title**
 * **disqus_url**

# Alternatives

A few alternatives exist to Disqus.

* [Intense Debate](http://intensedebate.com/)
* [LiveFyre](http://livefyre.com/)
* [Moot](http://muut.com)
* [Kaiju](http://github.com/spf13/kaiju)


[Kaiju](http://github.com/spf13/kaiju) is a open source project started
by [spf13](http://spf13.com) (Hugo’s author) to bring easy and fast real
time discussions to the web.

Written using Go, Socket.io and MongoDB it is very fast and easy to
deploy.

It is in early development but shows promise.. If you have interest
please help by contributing whether via a pull request, an issue or even
just a tweet. Everything helps.