From d9bef92be93733f46ef7fc9059272dbb16801609 Mon Sep 17 00:00:00 2001 From: Mike Mylonakis Date: Mon, 26 Nov 2018 01:54:44 +0000 Subject: [PATCH] Prevent current post from showing in the "You may also enjoy" (related (#1976) posts) section --- _layouts/single.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_layouts/single.html b/_layouts/single.html index 29637ac..bc3be56 100644 --- a/_layouts/single.html +++ b/_layouts/single.html @@ -84,6 +84,9 @@ layout: default
{% for post in site.posts limit:4 %} + {% if post.id == page.id %} + {% continue %} + {% endif %} {% include archive-single.html type="grid" %} {% endfor %}
-- 2.43.0