Comments enabled via utterances

blogdown commenting utterances

How I got utterances working on blogdown.

Robert M Flight
2019-10-16

TL;DR

Utterances is a lightweight commenting platform built on GitHub issues. So you have to have a GitHub account, but I expect most people who comment on this blog already have one.

Why Utterances

When I switched to blogdown, I lost my disqus comments. I had considered migrating them over, but never got around to it. I also thought that there had to be a way to link GitHub issues to blog posts, but didn’t investigate it much.

Then, I came across Maëlle’s blog post about switching to utterances and I was sold. I had some free time last night, and dived into how to add it to my site that uses the hugo academic theme.

I’m not expecting a lot of heavy commenting, but at least it’s now available!

How

For blogdown, just replace everything in layouts/partials/comments.html with the code snippet from utterances.

Corrections

If you see mistakes or want to suggest changes, please create an issue on the source repository.

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. Source code is available at https://github.com/rmflight/researchBlog_distill, unless otherwise noted. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Flight (2019, Oct. 16). Deciphering Life: One Bit at a Time: Comments enabled via utterances. Retrieved from https://rmflight.github.io/posts/2019-10-16-comments-enabled-via-utterances/

BibTeX citation

@misc{flight2019comments,
  author = {Flight, Robert M},
  title = {Deciphering Life: One Bit at a Time: Comments enabled via utterances},
  url = {https://rmflight.github.io/posts/2019-10-16-comments-enabled-via-utterances/},
  year = {2019}
}