Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent Behavior of Tags #296

Open
ctompos opened this issue Aug 22, 2024 · 2 comments
Open

Inconsistent Behavior of Tags #296

ctompos opened this issue Aug 22, 2024 · 2 comments

Comments

@ctompos
Copy link

ctompos commented Aug 22, 2024

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)

@HermanMartinus
Copy link
Owner

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 :)

@ctompos
Copy link
Author

ctompos commented Aug 22, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants