Add "Other News" section for News sidebar on site

This commit is contained in:
Parker Moore 2014-06-04 16:47:24 -04:00
parent ecdf6c2213
commit b5b1ca068d
1 changed files with 11 additions and 1 deletions

View File

@ -10,7 +10,7 @@
</ul> </ul>
<h4>Recent Releases</h4> <h4>Recent Releases</h4>
<ul> <ul>
{% for post in site.posts limit:5 %} {% for post in site.categories.release limit:5 %}
<li class="{% if page.title == post.title %}current{% endif %}"> <li class="{% if page.title == post.title %}current{% endif %}">
<a href="{{ post.url }}">Version {{ post.version }}</a> <a href="{{ post.url }}">Version {{ post.version }}</a>
</li> </li>
@ -19,5 +19,15 @@
<a href="/docs/history/">History »</a> <a href="/docs/history/">History »</a>
</li> </li>
</ul> </ul>
<h4>Other News</h4>
<ul>
{% for post in site.posts %}
{% unless post.categories contains 'release' %}
<li class="{% if page.title == post.title %}current{% endif %}">
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endunless %}
{% endfor %}
</ul>
</aside> </aside>
</div> </div>