Skip to main content


Client-side comments with Mastodon on a static Hugo website

#Hugo #goHugo #Blog #Blogging #Comments #Mastodon #Fediverse

andreas.scherbaum.la/post/2024…

in reply to Andreas Scherbaum

I’m curious as to what the rationale for JS-based client-side comments are over just including them in HTML during build-time with data templates. I’ve been doing that on my site for years.
This entry was edited (5 months ago)
in reply to Seirdy

@Seirdy Uh, because the site will then only include the comments which have been posted before the site was built. Everything after that is not included.

I don't know how often your website is rebuilt, mine usually only 2-3 times a week.

in reply to Andreas Scherbaum

Ah, that makes sense. I trigger a rebuild every time I approve new comments.