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

12
_includes/cat_header.html Normal file
View File

@ -0,0 +1,12 @@
<div id="header" class="container-fluid category-header">
<div class="cover center-both text-center">
<h1 class="title">{{ page.category | capitalize }}</h1>
</div>
<div class="left">
</div>
<div class="right">
</div>
</div>

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>