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

Feature/related by tags and categories #3123

Closed

Conversation

JohnScottUK
Copy link
Contributor

This is an enhancement or feature.

Summary

Add ability to include related pages by tags and/or categories. With the related_threshold > 0 pages with the matching number of tags and/or categories will be included instead of site.related_posts.

Context

Not related to any GitHub issue(s).

@mmistakes
Copy link
Owner

Closing as this is a Duplicate of #978, a PR I submitted way back in 2017. It hurts build times pretty bad if you have a big site as looping over site.posts to compare against tags or categories is costly in Liquid-land.

Using Jekyll related post plugins instead perform much better in my experience than any amount of Liquid spaghetti conditionals.

@mmistakes mmistakes closed this Aug 19, 2021
@JohnScottUK JohnScottUK deleted the feature/related-tags-categories branch August 22, 2021 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants