From b342a8948b46d6beafe4c1fa5d1702564cb5e683 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 23 Sep 2016 23:15:01 +0200 Subject: Don't show the current post in the sidebar. --- blog/_includes/news.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blog/_includes/news.html b/blog/_includes/news.html index f7983da..a8daaeb 100644 --- a/blog/_includes/news.html +++ b/blog/_includes/news.html @@ -1,6 +1,8 @@

{% t home.latest_news %}

{% for p in site.posts limit: 5 %} - {% include post-excerpt.html post=p %} + {% if p != page %} + {% include post-excerpt.html post=p %} + {% endif %} {% endfor %}
-- cgit v1.2.3