AdvisorySG / dawn-advisory-theme

Dawn theme for Ghost, adapted for Advisory SG.
https://beta.advisory.sg
MIT License
4 stars 17 forks source link

Post: Related posts are kinda weird with two tags #416

Open wei2912 opened 5 days ago

wei2912 commented 5 days ago

See https://beta.advisory.sg/2024/02/13/insights-on-foodpanda/ which has tags "Food Services" and #insights, and related posts:

image

By the related posts code (as explained in https://forum.ghost.org/t/show-related-posts-from-all-associated-tags/14005), the related posts should be the top three best matches based on highest number of matched tags (supposedly). Idk how this works, cos it doesn't show the only other article in "Food Services":

image

...but https://beta.advisory.sg/2021/02/22/insights-on-food-security/ which has the same tags (+ "Food Manufacturing" as primary) shows it as intended:

image

A few better solutions are listed in https://www.spectralwebservices.com/blog/a-better-related-block/. The JS solution should be suitable for our usecases, since related posts isn't crucial for non-JS users (e.g. parsers).

linear[bot] commented 5 days ago

GPT-135 Post: Related posts are kinda weird with two tags