diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2016-09-23 23:15:01 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2016-09-23 23:15:01 +0200 |
commit | b342a8948b46d6beafe4c1fa5d1702564cb5e683 (patch) | |
tree | 0b1381b069d0cf62ba574c9daf66fc1ef4cac740 /blog/_includes/news.html | |
parent | 1cff80663610b68ec9a31a74d2aabf68184cb6ff (diff) | |
download | norsk-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/news.html')
-rw-r--r-- | blog/_includes/news.html | 4 |
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> |