Added categories pages

This commit is contained in:
Asutosh Palai
2016-06-19 19:13:14 +05:30
parent 1807e27097
commit 2720d869d9
17 changed files with 48 additions and 3 deletions

View File

@ -23,13 +23,13 @@
<ul class="dropdown-menu">
{% for subcat in cat.subcategories %}
{% if site.categories[subcat] != nil %}
<li><a href="/category/{{ subcat }}">{{ subcat | uppercase }}</a></li>
<li><a href="/category/{{ subcat }}/">{{ subcat | uppercase }}</a></li>
{% endif %}
{% endfor %}
</ul>
</li>
{% else %}
<li><a href="/category/{{ cat.name }}">{{ cat.name | uppercase }}</a></li>
{% elsif site.categories[cat.name] != nil%}
<li><a href="/category/{{ cat.name }}/">{{ cat.name | uppercase }}</a></li>
{% endif %}
{% endfor %}
</ul>