summaryrefslogtreecommitdiffstats
path: root/blog/_includes
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2016-09-23 23:15:01 +0200
committerHarald Eilertsen <haraldei@anduin.net>2016-09-23 23:15:01 +0200
commitb342a8948b46d6beafe4c1fa5d1702564cb5e683 (patch)
tree0b1381b069d0cf62ba574c9daf66fc1ef4cac740 /blog/_includes
parent1cff80663610b68ec9a31a74d2aabf68184cb6ff (diff)
downloadnorsk-urskog-main-b342a8948b46d6beafe4c1fa5d1702564cb5e683.tar.gz
norsk-urskog-main-b342a8948b46d6beafe4c1fa5d1702564cb5e683.tar.bz2
norsk-urskog-main-b342a8948b46d6beafe4c1fa5d1702564cb5e683.zip
Don't show the current post in the sidebar.
Diffstat (limited to 'blog/_includes')
-rw-r--r--blog/_includes/news.html4
1 files changed, 3 insertions, 1 deletions
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 @@
<section id="news">
<h2>{% t home.latest_news %}</h2>
{% for p in site.posts limit: 5 %}
- {% include post-excerpt.html post=p %}
+ {% if p != page %}
+ {% include post-excerpt.html post=p %}
+ {% endif %}
{% endfor %}
</section>