When I got rid of my previous Django-based website and switched to Hugo, the idea was to have a low-maintenance website. I didn’t have much time and all the content was quite old. However, I always had the idea of bringing back some of the old content and even adding new articles at some point.
In the last few months I’ve been writing articles for Lutra Security and perhaps it’s time to revive this site as well. But before I really get to it, this site needs a few more features. Articles are not an end in themselves. Ideally a good article should make you think and maybe even start a discussion. For this, we need an option to comment on articles.
This blog post by Daniel Pecos Martínez inspired me to use Mastodon for this. I really like the API and that there are already some implementations that can be easily adapted.
<template> tag to define the HTML, which I found more convenient as I can use autocomplete and formatting in my IDE.
The code I ended up with, looked like this1:
If you end up using the module and find any bugs or are missing features, feel free to create an issue on GitHub. I’ll also consider any pull requests.
I’ll try to update this article if there are any major changes. If this happens, I will add a note to indicate this. ↩︎
You can use your Fediverse (i.e. Mastodon, among many others) account to reply to this post.