diff --git a/_src/_includes/relatedposts.html b/_src/_includes/relatedposts.html index 648c621f..2ac9f019 100644 --- a/_src/_includes/relatedposts.html +++ b/_src/_includes/relatedposts.html @@ -5,22 +5,13 @@
- {% for post in site.related_posts %} + {% for post in site.related_posts limit:6 %} - {% assign match = false %} - {% for category in post.categories %} - {% if page.categories contains category %} - {% assign match = true %} - {% endif %} - {% endfor %} - - {% if match %} -
- -

{{ post.title }}

-
-
- {% endif %} +
+ +

{{ post.title }}

+
+
{% endfor %}