My blog now has Lemmy comments
This is my new blog based on Zola, using the Duckquill theme. Duckquill has built in support for loading Mastodon comments see (the example on the theme site), given the link where you posted it. But I don’t much care for Mastodon support at this point, since I have very few followers, and no comments yet on any blog posts I’ve posted there.
I prefer Lemmy, where you don’t really care about followers, as long as your content is good and posted to right community(ies). So I made my own.
I thought I could modify Duckquill’s implementation to work with lemmy, but it turned out the implementation was so simple, and Lemmy and Mastodon’s api and comment structure different enough, that there wasn’t any overlap. I just whipped it up from scratch, with a little help from Claude and some sites that let me explore Lemmy’s openAPI spec.
To ble clear, the site itself is not fediverse enabled. I simply post the link somewhere, and give it the link, and it shows the comments of that posting.
My implementation also does not parse markdown (fortunately, markdown is human readable), or links or other things. It probably never will either, I’m trying to keep the site light.
To view it, click “Load Lemmy Comments” at the bottom of the page. Or “open Lemmy post” to add a comment yourself. If you’re early, I’ve put a random lemmy post instead, until my post of this blog post gets a couple of comments to show. To test it, add comment to whatever lemmy post you found this under (it might take a minute).
Future stuff to work on:
- Show comments from multiple posts, as popular posts often get reposted in multiple places
- Show some post context, like upvote count and # of comments
- Highlight replies by me
And let me know of any feedback.