bearblog icon indicating copy to clipboard operation
bearblog copied to clipboard

Inconsistent Behavior of Tags

Open ctompos opened this issue 1 year ago • 2 comments

I don't use Bear Blog, but I still found myself digging through the source earlier today, thinking that there might be a bug in tag filtration. No such luck after a little bit of poking; the logic in blog.py seemed fine.

Then I looked at a few more blogs on the platform, and the q parameter seemed to work as expected. Was I imagining otherwise? Nope, it's seemingly broken in some blogs, but working fine in others. I'm wondering if anyone who uses Bear Blog has thoughts on why tags wouldn't work?

Steps to reproduce (blogs chosen mostly at random):

Open one of the blogs below and click on any of the tag links at the bottom of the post. This should return a filtered list of posts that contain that tag.

✅ https://snaphappy.me/white-peony/ ❌ https://meadow.cafe/just-because-its-all-in-your-head-doesnt-mean-its-not-real/

Notice that the second blog just always returns every entry, regardless of tag. Any brilliant ideas? (No idea why this is irking me)

ctompos avatar Aug 22 '24 01:08 ctompos

Thanks for taking an interest in this. It baffled me for a bit as well, but I've just figured it out.

So, there is the ability to overwrite the blog page by creating a page with the link blog and adding a custom post list. The benefit of doing this is that you get more control over what the page looks like since you can add content surrounding the post list.

However, the embedded post list does not have the filter functionality built into it. Only the original blog page does. It is a limitation that I'll give some thought to, but it is also a very niche problem :)

HermanMartinus avatar Aug 22 '24 05:08 HermanMartinus

Ah, glad you were able to figure this out so quickly. As long as you're aware of it, I'm happy enough to leave you be. Thanks for taking a look!

ctompos avatar Aug 22 '24 13:08 ctompos