Split news into sub categories

This commit is contained in:
Asutosh Palai
2016-07-06 02:40:02 -04:00
parent 5677f0fb66
commit b83f7e611d
2 changed files with 22 additions and 15 deletions

View File

@ -22,8 +22,8 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ cat.name | uppercase }} <span class="caret"></span></a>
<ul class="dropdown-menu">
{% for subcat in cat.subcategories %}
{% if site.categories[subcat] != nil %}
<li><a href="/category/{{ subcat }}/">{{ subcat | uppercase }}</a></li>
{% if site.categories[subcat.name] != nil %}
<li><a href="/category/{{ subcat.name }}/">{{ subcat.title | uppercase }}</a></li>
{% endif %}
{% endfor %}
</ul>