Show comments from Mastodon and Bluesky - #27
Conversation
|
Is there a way to tell it we intend for there to be comments when the links aren't ready yet, so we can put something like "comment link coming soon, reload in a few minutes" or something like that? I was thinking to add a comments section without any links listed under it yet, but I suppose that might break the yaml parser. |
|
I'm sure it's possible to detect if there's "no comments" vs. "not linked to mastodon/bluesky yet". However, I don't no if it's worth the trouble. I'm guessing that if people see "no comments", they will come back later or click on the Mastodon or Bluesky link, and follow the post there directly. Let me think a little about it and see if I can come with something tomorrow ;). |
|
There's not going to be a "No comments" message if the links aren't there yet, because the component isn't invoked without the links. There will be a "Comments" H2 block with nothing under it though, because that's in the template regardless. If {% if page.comments %}actually works, then we should probably put that header inside that. |
Good catch. We can also add a |
|
But if |
|
IIUC, the steps would be:
|
Signed-off-by: Danny Colin <contact@dannycolin.com>
790bc17 to
ad92b1f
Compare
|
@justdave I added a new attribute |
This uses oom-components/mastodon-comments to display replies from mastodon and bluesky.
To link a blog entry with our social media accounts, you need to add the following in the blog frontmatter:
To test this patch, you can use the post urls from mastodon-comments' demo: