Prevent current post from showing in the "You may also enjoy" (related (#1976)
posts) section
This commit is contained in:
parent
851426dba2
commit
319a74621b
1 changed files with 3 additions and 0 deletions
|
@ -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>
|
<h4 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h4>
|
||||||
<div class="grid__wrapper">
|
<div class="grid__wrapper">
|
||||||
{% for post in site.posts limit:4 %}
|
{% for post in site.posts limit:4 %}
|
||||||
|
{% if post.id == page.id %}
|
||||||
|
{% continue %}
|
||||||
|
{% endif %}
|
||||||
{% include archive-single.html type="grid" %}
|
{% include archive-single.html type="grid" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue