mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
Split news into sub categories
This commit is contained in:
@ -1,22 +1,29 @@
|
||||
---
|
||||
- name: news
|
||||
- name: acads
|
||||
subcategories:
|
||||
- name: cultural
|
||||
subcategories:
|
||||
- name: tech
|
||||
subcategories:
|
||||
- name: sac
|
||||
subcategories:
|
||||
- acads
|
||||
- sports
|
||||
- cultural
|
||||
- tech
|
||||
- sac
|
||||
- phekingnews
|
||||
- name: columns
|
||||
subcategories:
|
||||
- coverstory
|
||||
- bigstory
|
||||
- editorial
|
||||
- almostfamous
|
||||
- guestcomentary
|
||||
- name: coverstory
|
||||
title: Cover Story
|
||||
- name: bigstory
|
||||
title: Big Story
|
||||
- name: almostfamous
|
||||
title: Almost Famous
|
||||
- name: phekingnews
|
||||
title: Pheking News
|
||||
- name: guestcomentary
|
||||
title: Guest Comentary
|
||||
- name: editorial
|
||||
title: Editorial
|
||||
- name: verbatim
|
||||
subcategories:
|
||||
- name: career
|
||||
subcategories:
|
||||
- name: archives
|
||||
- name: sports
|
||||
subcategories:
|
||||
|
||||
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user