Prevent current post from showing in the "You may also enjoy" (related (#1976)

posts) section
This commit is contained in:
Mike Mylonakis 2018-11-26 01:54:44 +00:00 committed by Michael Rose
parent 851426dba2
commit 319a74621b

View file

@ -84,6 +84,9 @@ layout: default
<h4 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h4>
<div class="grid__wrapper">
{% for post in site.posts limit:4 %}
{% if post.id == page.id %}
{% continue %}
{% endif %}
{% include archive-single.html type="grid" %}
{% endfor %}
</div>