Hacker News new | ask | show | jobs
by incanus77 1927 days ago
Excellent concept, project & service. I'm using it together with Brid.gy[1] on my Hugo-hosted blog[2] and it's great for bringing in Twitter likes of posts.

[1] https://brid.gy/

[2] https://justinmiller.io/posts/2020/12/23/ornament/

5 comments

Yeah - I’ve gotten a lot of mileage out of these services. Along with commentpara.de for anonymous comments.

There’s an anon comment on this post: https://www.kickscondor.com/the-multiverse-diary along with the link to leave a comment. Static HTML!

I have a ~200 LOC Hugo partial I've built up which reads in the webmentions via jQuery, then parses them out into Twitter, Micro.blog, or "other". If at least one of either/or Twitter or Micro.blog, pull out the root URL and show that at the top of the comments to encourage discussion. Otherwise, parse out like, repost, or plain old mention and add an icon.

I also have an HN parser for posts like this one[1] if they've hit a certain comment threshold.

I don't have any problem with sharing it, but I just haven't published it anywhere yet on account of not wanting the maintenance or support overhead. I think all of it can be gleaned from the page source, anyway.

[1] https://justinmiller.io/posts/2019/09/21/pi-gadget/ (see bottom)

was it easy to get it setup? I too have a Hugo blog but other than occasionally adding posts and changing the theme, haven't done any intense partial-building. Sounds like it could be a fun little project
I mean, the JS itself is the 200 LOC, so it's not trivial, but feel free to crib my source as a start. The partials are really straightforward, though — my layouts/microposts/single.html just brings in the webmentions.html partial with one tag at the right part of the layout (i.e. almost the bottom) and then that JS does the work of... whatever you want. You could start just iterating the contents of any webmentions array pulled in as an unnumbered list, then iterate your presentation from there.
I'm not sure it is excellent -- it seems "just simple enough" to get people to adopt it. It might even work for a small community. For now.

How will it scale as more sites interconnect? I don't mean technically -- I mean socially.

In particular, how does it handle moderation? ... It seems to me that moderation is left up to the site host. That's not unreasonable given the complexity and diversity of what different people might want.

But, in my view, this is only a starting point. And frankly, an uninteresting one that seems to have punted on the hardest problems of networked discussion.

Sure, it's a starting point. But its stated goal is to be:

> a hosted service created to easily receive webmentions on any web page.

Combined with that, it's well-documented, open, simple, and to boot, this site in particular is a free service. I'd say that is indeed excellent — a distinction I'd award any service that espouses simplicity, clarity, fills a useful need, and has a JFDI attitude.

Do you have a write-up on how you integrated this with Hugo and what the trade-offs were? I have an active side-project to add full IndieWeb support to my favorite Hugo theme, which includes WebMentions.
Can you explain how this works? The blog post is pulling in the webmentions via JavaScript?