Showing comments using Bluesky
You can also show comments on your blog posts using bluesky.
How it works
Set the BLUESKY_IDENTIFIER
in your src/config.json
file to your bluesky handle (without the @
).
Then just post a link to your blog post on bluesky and comments will be shown on your blog posts, looking something like this:
Note that no โadd commentโ link is shown if there is no post on bluesky linking to your blog post.
Comments are both server-side rendered on build and updated on the client when you navigate to the page (so they work without javascript, but might be a bit outdated).
If you post a link to your blog post on bluesky, likes will also be shown (see likes via bluesky).
If you donโt want to show likes, you can disable them using the disableLikes
option in your post options.
disableLikes: true
See a live example below:
Like or comment on blueskyWe may want to get ahead of the link spam
oauth would mean that the site couldn't be static anymore (i think so at least? not sure honestly), and i'd really like to keep it static
re: labellers, my thought was more about respecting the labeller choices of the readers, if they choose to oauth, optional ofc.
yeah, respecting a readers choice re what to moderate would be awesome, as a first step I'd like to give the blog author the possibility to moderate though
oh hmmmm ahhh u used svelte comps here mmm now where r the actual callsโฆ
Client side fetching is in โsrc/components/bluesky/utils.tsโ
thanks for the help can i get a little feedback? I feel like my font is too small on this
blog.skill-issue.dev/blog/rusty_p...
will try to implement ur thing in static
there's also some overflow-x issue (can scroll slightly to the right)
it's also a lot of code, highlighting could be nice + maybe long code blocks could have just a few lines visible with a option to extend