Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd related_posts option RELATED_POSTS_SKIP_SAME_CATEGORY #380
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Well, I'm not the original author, but I refactored it to some extend. So, as far as I'm concerned, this looks good. |
This comment has been minimized.
This comment has been minimized.
|
Indeed, thanks, the original author of the plugin seems to be @samrat. |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the enhancement, @kernc. |
justinmayer
added a commit
that referenced
this pull request
Dec 30, 2014
justinmayer
merged commit 242f221
into
getpelican:master
Dec 30, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
kernc commentedDec 23, 2014
Posts in the same category may sometimes (depending on the overall site design) have a lot of tags in common. Thus the
article.related_postsholds only the posts that are tightly (perhaps too tightly) related to the original post, and no posts from other categories, since those, with only one or two tags in common, can't as effectively compete.