Add logic for printing site update above categories.

This commit is contained in:
Anna Rose 2016-04-12 02:07:54 -04:00
parent 04a034f5d0
commit 91c6bbeff6

View File

@ -2,6 +2,16 @@
layout: default
---
<div class="home">
{% assign last_meta = site.categories.meta.first %}
{% if last_meta.active %}
<div class="site-update">
Site Update:
<a href="{{ last_meta.href | prepend: site.baseurl }}">
{{ last_meta.title }}
</a>
</div>
{% endif %}
{% for category in site.categories %}
{% if category.first == "meta" %} {% continue %} {% endif %}
<div class="column col-{{site.categories.size | minus: 1}}">
@ -11,8 +21,4 @@ layout: default
{% include category_list.html category=category.first limit=5 %}
</div>
{% endfor %}
<div class="site-updates">
</div>
</div>