You can use Mastodon to add comments to your static blog engine.
https://carlschwan.eu/2020/12/29/adding-comments-to-your-static-blog-with-mastodon/ #webdev #fediverse
https://carlschwan.eu/2020/12/29/adding-comments-to-your-static-blog-with-mastodon/ #webdev #fediverse
Adding comments to your static blog with Mastodon
One of the biggest disadvantages of static site generators is that they are static and can’t include comments. There are multiples solutions to solve this problem.carlschwan.eu
Coffee (Team CW) reshared this.
Iacopo Moles
•Kirill Zholnay
•retiolus
•retiolus
•I added your code in layouts/partials/comments.html
"{{ partial "comments.html" . }}" in layouts/posts/single.html
and added
"
[comments] host = "mamot.fr"
username = "retiolus
id = "107245995000136554""
to one of my posts.
The new comments section appears, but once you click on "Load comments" nothing happens…
Carl Schwan :kde:
•Carl Schwan :kde:
•DOMPurify/purify.min.js at main · cure53/DOMPurify
GitHubapetresc
•Carl :kde:
•Paul :python: :django:
•I inaugurated the feature by enabling comments on the half-dozen posts I had already tooted about.
@gabriel@mk.gabe.rocks
•Marian
•Have you made any efforts to develop this further since you posted about it initially?
Also I wonder how I would moderate comments which I clearly wouldn't want to have in my blog. Like Spam.
An :sparkles:
•pmurphs
•Autism 101 :autism: :verified:
•gholk
•Michael Roberts
•Here's my console log - looks like it's not finding DOMPurify?
Front-end stuff is not my strong suit...
Carl Brown
•Zak
•I haven't found a good solution yet other than to just link to the post and let people get to their own server from there.
anarcat
•anarcat (@Anarcat@kolektiva.social)
kolektiva.socialanarcat
•Esi Jóhannes G.
•