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

@ -14,6 +14,8 @@
- editorial
- almostfamous
- guestcomentary
- name: verbatim
subcategories:
- name: career
subcategories:
- name: archives

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>

View File

@ -0,0 +1,3 @@
---
category: acads
---

View File

@ -0,0 +1,3 @@
---
category: almostfamous
---

View File

@ -0,0 +1,3 @@
---
category: archives
---

View File

@ -0,0 +1,3 @@
---
category: bigstory
---

View File

@ -0,0 +1,3 @@
---
category: career
---

View File

@ -0,0 +1,3 @@
---
category: columns
---

View File

@ -0,0 +1,3 @@
---
category: coverstory
---

View File

@ -0,0 +1,3 @@
---
category: cultural
---

View File

@ -0,0 +1,3 @@
---
category: guestcomentary
---

3
category/news/index.html Normal file
View File

@ -0,0 +1,3 @@
---
category: news
---

3
category/sac/index.html Normal file
View File

@ -0,0 +1,3 @@
---
category: sac
---

View File

@ -0,0 +1,3 @@
---
category: sports
---

3
category/tech/index.html Normal file
View File

@ -0,0 +1,3 @@
---
category: tech
---

View File

@ -0,0 +1,3 @@
---
category: verbatim
---

View File

@ -450,6 +450,7 @@ footer {
z-index: 10;
background: white;
padding-top: 10px;
min-height: 100px;
.category-post {
margin-bottom: 30px;