From c4ca1dec9a089624836b7e7e17c9e6769c2ba43b Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 25 Nov 2018 15:15:39 +0000 Subject: [PATCH] Prevent current post from showing in the "You may also enjoy" (related posts) section --- _layouts/single.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_layouts/single.html b/_layouts/single.html index 29637ac23b3c..bc3be561d937 100644 --- a/_layouts/single.html +++ b/_layouts/single.html @@ -84,6 +84,9 @@
{% for post in site.posts limit:4 %} + {% if post.id == page.id %} + {% continue %} + {% endif %} {% include archive-single.html type="grid" %} {% endfor %}