I created a blog with jekyll. Recently related_posts only recommends the latest posts.
I recently used the jekyll build - lsi
command to do a good post recommendation.
You can read this part at https://jekyllrb.com/docs/variables/ link.
In summary, the liquid variable updates the site.related_posts
section to index the relevant posts.
By the way, after that, the build is so slow that it is still slow, even though I've erased all the related gems. _config related variables I do not know how I can get back to it ...
From the very same page you linked to in your question:
For high quality but slow to compute results, run the
jekyll
command with the--lsi
(latent semantic indexing) option.
So, the "slowness" is a documented and expected side-effect to using the --lsi
option.
If you feel, the "extra slowness" is seen only in v3.8.x
and not in the previous versions, I highly recommend that you open an issue at Jekyll's GitHub repo.