Add logic for printing site update above categories.
This commit is contained in:
parent
04a034f5d0
commit
91c6bbeff6
14
index.html
14
index.html
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user