# Staticman - A comments system for Hugo site

**URL:** <https://discourse.gohugo.io/t/staticman-a-comments-system-for-hugo-site/4429>\
**Category:** support\
**Created:** [October 29, 2016, 11:41am UTC](https://discourse.gohugo.io/t/staticman-a-comments-system-for-hugo-site/4429 "2016-10-29T11:41:51Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![magicstone1412](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@magicstone1412](https://discourse.gohugo.io/u/magicstone1412)\
**Post date:** [October 29, 2016, 11:41am UTC](https://discourse.gohugo.io/t/staticman-a-comments-system-for-hugo-site/4429/1 "2016-10-29T11:41:51Z")

</div>

I found a comment system called staticman for Hugo site at [https://hugo.staticman.net/](https://hugo.staticman.net/).

Is there any documents to implement to my site? Thanks

---

<div class="post-metadata">

**Author:** ![mpaluchowski](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/mpaluchowski/32/3459_2.png) [@mpaluchowski](https://discourse.gohugo.io/u/mpaluchowski)\
**Post date:** [October 30, 2016, 5:47am UTC](https://discourse.gohugo.io/t/staticman-a-comments-system-for-hugo-site/4429/2 "2016-10-30T05:47:28Z")

</div>

Looks like the author of Staticman has a GitHub repo with the installation on Hugo here [https://github.com/eduardoboucas/hugo-plus-staticman](https://github.com/eduardoboucas/hugo-plus-staticman)

---

<div class="post-metadata">

**Author:** ![lebarde](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/lebarde/32/2207_2.png) [@lebarde](https://discourse.gohugo.io/u/lebarde)\
**Post date:** [October 30, 2016, 7:21am UTC](https://discourse.gohugo.io/t/staticman-a-comments-system-for-hugo-site/4429/3 "2016-10-30T07:21:48Z")

</div>

It seems that to implement that you create a static form that posts to the `api.staticman.net` url. You have to clone his public repository on github and his API creates a pull request on your github repository.

I think all the difficult part is to get the form working.

Now, just be warned: the comments end on static data on your server, which is nice, but data still passes by an external library on which you have no control (most especially if the service occurs to disappear some day).

**Edit:** this inspired me **[this idea](https://discuss.gohugo.io/t/a-true-static-comment-system-with-emails/4438)** for a totally static commenting system.

---

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [October 30, 2016, 3:44pm UTC](https://discourse.gohugo.io/t/staticman-a-comments-system-for-hugo-site/4429/4 "2016-10-30T15:44:44Z")

</div>

> [@magicstone1412](#):
>
> Is there any documents to implement to my site? Thanks

> [@lebarde](#):
>
> It seems that to implement that you create a static form that posts to the [api.staticman.net](http://api.staticman.net) url.

Just saw that there is some documentation on the website itself: [staticman docs](https://staticman.net/docs/).

It does mention Jekyll there, but whether you add a `_config.yml` to a Jekyll or Hugo repository probably doesn’t matter.

---

<div class="post-metadata">

**Author:** ![eduardoboucas](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/eduardoboucas/32/2169_2.png) [@eduardoboucas](https://discourse.gohugo.io/u/eduardoboucas)\
**Post date:** [October 31, 2016, 10:59am UTC](https://discourse.gohugo.io/t/staticman-a-comments-system-for-hugo-site/4429/5 "2016-10-31T10:59:24Z")

</div>

Hi! I’m the author of Staticman.

The platform can be used with any static site generator, even though the existing documentation is heavily focused on Jekyll.

I’m working on correcting this. The repository that @mpaluchowski found will be used in a screencast I’m putting together, showing how to integrate Staticman with Hugo. The source code should be useful to shed some light on how the intregration works.

I’m hoping to have the capacity to complete the screencast in the next week or so. In the meantime, feel free to create issues on the [GitHub repository](https://github.com/eduardoboucas/staticman) and I’ll do my best to help.

Thanks!

---

<div class="post-metadata">

**Author:** ![kaushalmodi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kaushalmodi/32/2567_2.png) [@kaushalmodi](https://discourse.gohugo.io/u/kaushalmodi)\
**Post date:** [October 31, 2016, 11:22am UTC](https://discourse.gohugo.io/t/staticman-a-comments-system-for-hugo-site/4429/6 "2016-10-31T11:22:48Z")

</div>

> Staticman runs as a GitHub bot, so it needs a GitHub account

Oh no, I use Gitlab.

---

<div class="post-metadata">

**Author:** ![lebarde](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/lebarde/32/2207_2.png) [@lebarde](https://discourse.gohugo.io/u/lebarde)\
**Post date:** [November 1, 2016, 6:06am UTC](https://discourse.gohugo.io/t/staticman-a-comments-system-for-hugo-site/4429/7 "2016-11-01T06:06:26Z")

</div>

Thanks @eduardoboucas for your message. Now I understand that the pi server does not come from anywhere, and should it disappear we still can bring our personal one up.

@kaushalmodi maybe we should see if tuning staticman into gitlab would not be so painful. Already it manages git things, we should see if gitlab prposes its api kind of the same way as github.

---

<div class="post-metadata">

**Author:** ![eduardoboucas](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/eduardoboucas/32/2169_2.png) [@eduardoboucas](https://discourse.gohugo.io/u/eduardoboucas)\
**Post date:** [November 1, 2016, 8:54am UTC](https://discourse.gohugo.io/t/staticman-a-comments-system-for-hugo-site/4429/8 "2016-11-01T08:54:32Z")

</div>

There are plans to support GitLab (see [GitHub issue](https://github.com/eduardoboucas/staticman/issues/22)), but to be honest I don’t know when I will have the capacity to make that happen. It will require a considerable amount of work, since we’ll need to abstract the current communication with the GitHub API and make sure every operation is ported to GitLab’s.

---

<div class="post-metadata">

**Author:** ![didrome](https://avatars.discourse-cdn.com/v4/letter/d/ea5d25/32.png) [@didrome](https://discourse.gohugo.io/u/didrome)\
**Post date:** [December 4, 2017, 12:50am UTC](https://discourse.gohugo.io/t/staticman-a-comments-system-for-hugo-site/4429/9 "2017-12-04T00:50:49Z")

</div>

Here is a complete Hugo theme with staticman support : [https://github.com/halogenica/beautifulhugo](https://github.com/halogenica/beautifulhugo)  
I used to configure my own site and theme. It works very well with github.

---

<div class="post-metadata">

**Author:** ![VincentTam](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/vincenttam/32/8518_2.png) [@VincentTam](https://discourse.gohugo.io/u/VincentTam)\
**Post date:** [November 20, 2018, 11:07am UTC](https://discourse.gohugo.io/t/staticman-a-comments-system-for-hugo-site/4429/10 "2018-11-20T11:07:20Z")

</div>

Two months after Staticman’s GitLab suppot has been merge to the main branch, I’ve successfully recreated a [Beautuful Hugo site with comment reply on GitLab](https://vincenttam.gitlab.io/bhdemo) ([source](https://gitlab.com/VincentTam/bhdemo)) a few days ago.

 ![Hugo+Staticman on GitLab](https://yyz2.discourse-cdn.com/flex036/uploads/gohugo/original/2X/3/3b3ef622820a1cec371049a96b8023c074561dd4.png)  
Hugo + Staticman on GitLab

Credits to

1. Nicolas Tsim, the author of Staticman’s GitLab suppot (PR 219)
2. Eduardo Bouças, the author of Staticman
3. Michael Romero, the author of Beautiful Hugo
4. Dan C Williams, the author of a guide to Staticman comment replies on Hugo on _Network Hobo_.

---

<div class="post-metadata">

**Author:** ![Arnoldo4567](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/arnoldo4567/32/7873_2.png) [@Arnoldo4567](https://discourse.gohugo.io/u/Arnoldo4567)\
**Post date:** [February 7, 2019, 5:56am UTC](https://discourse.gohugo.io/t/staticman-a-comments-system-for-hugo-site/4429/11 "2019-02-07T05:56:19Z")

</div>

It’s awesome, thanks a lot for the time spent on this project. However, when I try to implement it on my own website on gitlab pages, the moment I add the param.staticman in config.toml, my logo and top section of my website disappear, would you know why? Thanks a lot

---

<div class="post-metadata">

**Author:** ![VincentTam](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/vincenttam/32/8518_2.png) [@VincentTam](https://discourse.gohugo.io/u/VincentTam)\
**Post date:** [February 9, 2019, 12:59pm UTC](https://discourse.gohugo.io/t/staticman-a-comments-system-for-hugo-site/4429/12 "2019-02-09T12:59:08Z")

</div>

Please include a link to the source code of your website. You may also consult the successful examples by browsing the activitiy of [@staticmanlab](https://gitlab.com/staticmanlab), the public Staticman GitLab instance.

In addition, a list of themes with Staticman integrated is available on [Framagit](https://framagit.org/staticman-et-gitlab-pages).

Please feel free to post further questions.

Bonne journée !

---

<div class="post-metadata">

**Author:** ![VincentTam](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/vincenttam/32/8518_2.png) [@VincentTam](https://discourse.gohugo.io/u/VincentTam)\
**Post date:** [February 27, 2019, 3:53pm UTC](https://discourse.gohugo.io/t/staticman-a-comments-system-for-hugo-site/4429/13 "2019-02-27T15:53:40Z")

</div>

Sorry for very late reply. 🙉 Last week I had several exams. Please give me a link to the source code of your repo so that I can have a look. Does the HTML form show up? Can the Staticman server create YML files inside your repo? It seems to be a problem of the theme’s setup.

---

<div class="post-metadata">

**Author:** ![Arnoldo4567](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/arnoldo4567/32/7873_2.png) [@Arnoldo4567](https://discourse.gohugo.io/u/Arnoldo4567)\
**Post date:** [February 27, 2019, 3:59pm UTC](https://discourse.gohugo.io/t/staticman-a-comments-system-for-hugo-site/4429/14 "2019-02-27T15:59:56Z")

</div>

Hi Vincent, no worries, it’s actually fine now since the theme that I’m using just implemented staticman so I will just need to update the theme to make it work. Thanks a lot for your work and good luck for your exams.
