Recent posts does no longer show current page

This commit is contained in:
Paulus Schoutsen 2014-12-26 00:34:46 -08:00
parent 9dd75b594f
commit ec7b02ec34

View File

@ -1,10 +1,12 @@
<section id="recent-posts" class="aside-module grid__item one-whole lap-one-half"> <section id="recent-posts" class="aside-module grid__item one-whole lap-one-half">
<h1 class="title delta">Recent Posts</h1> <h1 class="title delta">Other Posts</h1>
<ul class="divided"> <ul class="divided">
{% for post in site.posts limit: site.recent_posts %} {% for post in site.posts limit: site.recent_posts %}
<li class="post"> {% if post.url != page.url %}
<a href="{{ root_url }}{{ post.url }}">{{ post.title }}</a> <li class="post">
</li> <a href="{{ root_url }}{{ post.url }}">{{ post.title }}</a>
</li>
{% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
</section> </section>