sod
sod

@pratik I'm glad the plug-in works great, in most cases. 😊 Unfortunately, Conversation on Micro.blog is not designed for listing pages with multiple posts. I might add support in the future, but for now, it will only work in single post scenarios.

Regarding the duplicates: I don't know what's going on there. I'll have to take a look and get back to you.

|
Embed
amit
amit

@pratik It's not duplicate, one is for the page On This Day, and the other is for the last post. I think you should just add the shortcodes to the singles template. // @sod

|
Embed
sod
sod

@pratik Yepp, @amit is totally correct. Moving the code snippets for the plug-ins to layouts/post/single.html will probably work a lot better. 😊

|
Embed
pratik
pratik

@sod No problem about not supporting pages with multiple posts. I wasn't even expecting to see it on that page. Can I disable it just for that post until we figure out the duplicate issue?

|
Embed
sod
sod

@pratik Hehe, I think we wrote to each other simultaneously. 😊 Moving the snippets as I described above should solve all your problems.

|
Embed
pratik
pratik

@sod @amit That's where I have put it. BTW what's the difference between layouts/_default/single.html and layouts/post/single.html. I have on both these pages.

|
Embed
pratik
pratik

@amit BTW your reply in this thread doesn't show up in my Mentions 🤔

|
Embed
sod
sod

@pratik Okay, then you should remove it from layouts/_default/single.html. That's a default, more general template that applies to ordinary pages. Your pages won't show up on the timeline, so having a Conversation on Micro.blog link in that template makes less sense.

|
Embed
sod
sod

@pratik Is none of them showing? If so, that's something for @manton to look into. Otherwise, it might be that I answered @amit's post in one case, mentioning you. Maybe that kind of reply won't show up in Mentions?

|
Embed
amit
amit

@pratik happens to me all the time. Mentions are usually late, replies show up in the timeline first.

|
Embed
pratik
pratik

@sod Will try it. What’s the difference between the two anyway? Similarly, which is the homepage one? Index or list?

|
Embed
pratik
pratik

@amit This reply showed up but still not seeing the earlier one. I would’ve missed it if @sod hadn’t also replied

|
Embed
sod
sod

@pratik I'm neither a user nor the designer of the theme you're using, so I'm afraid I don't know all the differences. But a quick glance at your blog hints at posts having a prominent date at the top, compared to ordinary pages like About.

In your case, index.html is the template for the homepage. There's a particular lookup order when it comes to templates in Hugo. So, if you should happen to remove index.html, _default/list.html would take its place and be used for the homepage instead.

|
Embed
pratik
pratik

@sod Ah! Got it. I have noticed these two files in other themes too. Thanks for explaining.

|
Embed
pratik
pratik

@sod Removing it from layouts/_default/single.html worked. It removed the one for that page, as @amit pointed out. The ones under each post on that page remain which is great. So it's working on pages that list posts in some order.

|
Embed
sod
sod

@pratik Yes, Reply by email will work, but unfortunately not Conversation on Micro.blog. Those links will just take the visitor to your profile on Micro.blog (not the actual conversation).

|
Embed
pratik
pratik

@sod Why is that? Does the timeline view expire for old posts? After how much time?

|
Embed
sod
sod

@pratik No, it's just a design decision I made during development, for two reasons. First, it was quicker to implement. 😊 Quicker is always better for me when working for free. Less time spent on free labor means I can spend more time doing paid labor, more food on the table, etc.

Second, I want to discourage people from putting the link on archive pages as that will unnecessarily load the Micro.blog servers. Every link needs a request to find out the conversation URL. A list page with 10 posts will make 10 requests to the servers.

I have an idea how to implement this in another way, to get support for having links to conversations on list pages. I might get around to that in the future.

|
Embed
pratik
pratik

@sod Ah! Of course! Spend only as much time as you should. You already do a lot here.

But I'm glad to know it's not a technical limitation. The only place it is replacing it automatically is the On This Day page and I'm fine with that. But if I link to an older post, I would want the reader to be able to reply on MB if they want to. Similar to how old tweets get replies.

|
Embed
sod
sod

@pratik Yeah, support for old posts is already in the plug-in. As long as you link to an older post that actually has an entry on the Micro.blog timeline, the link should show up and take the visitor to the timeline when clicked.

|
Embed