Added category page

This commit is contained in:
Asutosh Palai
2016-06-19 18:58:51 +05:30
parent cbece234c8
commit 1807e27097
9 changed files with 86 additions and 8 deletions

View File

@ -22,7 +22,9 @@
<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 %}
<li><a href="/category/{{ subcat }}">{{ subcat | uppercase }}</a></li>
{% if site.categories[subcat] != nil %}
<li><a href="/category/{{ subcat }}">{{ subcat | uppercase }}</a></li>
{% endif %}
{% endfor %}
</ul>
</li>