My Hugo theme and thoughts on Gitment

Another day with JavaScript is another struggle

I have to say, JavaScript is not a fun language to work on.

The story is, today, Luke (the guy who requested me to fork Tale), asked me if I know of any method to add comments into his Hugo blog. I then thought, “hey that’d be nice if my theme integrates that.” I did just that.

How I came up with it

Luke is a Linux user, and like many Linux users, privacy is priority. That alone throws Disqus, Google Comments, et cetera… out the Windows (see that?). He also didn’t have a server ready to act as a backend. After a while, I came up with something.

Initially a joke, is now a possible method

Initially it was a joke statement: I said that making a new Git issue and then using that as the comment backend would be nice. Despite it being a joke, a Google search got me this.

Holy #$%&!

It actually took me quite a while. Integrating this was a lot harder than I initially anticipated. After half a whole day (with no energy left), I finally managed to do it.

gitment Gitment in all its glory

My thoughts on Gitment

It’s pretty neat, really. It works well enough for its job. I’m a bit surprised at how my initial joke turned out to be a serious, actually working plugin. Despite that, GitLab compatibility would be nice, although you can always use GitLab Pages with a separate GitHub repository.

About my own theme

Integration of Gitment with my theme is done, and I did most of the styling already. The theme can be found here: [email protected]/burned.

P/S: Hip hip hooray, I’ve stumbled upon another bug! The comments are the same for every post. I’ll fix that now.

P/P/S: Fixed it! Pretty darn neat, I’d say.

Comments