diff --git a/README.md b/README.md index 0e7f3d934389..6e6a47f75a4e 100644 --- a/README.md +++ b/README.md @@ -389,6 +389,15 @@ If you have a different question, please ask using [Discussions](https://github. RSS Feed plugin works with these correctly set up fields: `title`, `url`, `description` and `author`. Make sure to fill them in an appropriate way and try again. +5. **Q:** My site doesn't work when I enable `related_blog_posts`. Why?
+ **A:** This is probably due to the [classifier reborn](https://github.com/jekyll/classifier-reborn) plugin, which is used to calculate + related posts. If the error states `Liquid Exception: Zero vectors can not be normalized...`, it means that it could not calculate related + posts for a specific post. This is usually caused by [empty or really small blog posts](https://github.com/jekyll/classifier-reborn/issues/64) + without meaningful words (i.e. only [stop words](https://en.wikipedia.org/wiki/Stop_words)) or even + [specific characters](https://github.com/jekyll/classifier-reborn/issues/194) you used in your posts. Also, the calculus for similar posts are + made for every `post`, which means every page that uses `layout: post`, including the announcements. To change this behavior, simply add + `related_posts: false` to the front matter of the page you don't want to display related posts on. + ## Features diff --git a/_news/announcement_1.md b/_news/announcement_1.md index 6a43e77a4873..572075b01f9b 100644 --- a/_news/announcement_1.md +++ b/_news/announcement_1.md @@ -2,6 +2,7 @@ layout: post date: 2022-11-04 10:00:00+0100 inline: true +related_posts: false --- My new website is now live! Thanks for checking it out. diff --git a/_news/announcement_2.md b/_news/announcement_2.md index 6d73f456f667..36a89c1f5af9 100644 --- a/_news/announcement_2.md +++ b/_news/announcement_2.md @@ -3,6 +3,7 @@ layout: post title: A long announcement with details date: 2015-11-07 16:11:00-0400 inline: false +related_posts: false --- Announcements and news can be much longer than just quick inline posts. In fact, they can have all the features available for the standard blog posts. See below. diff --git a/_news/announcement_3.md b/_news/announcement_3.md index 7171f4737dce..3a3f57123f83 100644 --- a/_news/announcement_3.md +++ b/_news/announcement_3.md @@ -2,6 +2,7 @@ layout: post date: 2022-09-16 17:00:00+0300 inline: true +related_posts: false --- Just finished attending [EFMC](https://www.erasmus.gr/microsites/1240) in Athens - so much inspiring science!