diff --git a/_data/categories.yaml b/_data/categories.yaml index d836bfe..e0b2f5b 100644 --- a/_data/categories.yaml +++ b/_data/categories.yaml @@ -1,22 +1,29 @@ --- -- name: news +- name: academics + 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: diff --git a/_data/homepage_categories.yaml b/_data/homepage_categories.yaml index 3951a7b..a6c9425 100644 --- a/_data/homepage_categories.yaml +++ b/_data/homepage_categories.yaml @@ -1,7 +1,14 @@ --- -- phekingnews -- editorial -- coverstory +featured_articles: - bigstory -- verbatim +- editorial - almostfamous +- phekingnews +- verbatim +- tech + +new_articles: +- academics +- sac +- career +- cultural diff --git a/_includes/header.html b/_includes/header.html index 49b9a6a..583adbe 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,4 +1,4 @@ -{% assign post = site.posts.first %} +{% assign post = site.categories['coverstory'].first %} {% if page.is_post == true %} {% assign post = page %} {% endif %} @@ -7,9 +7,11 @@ {% if post.image != nil %}
{% endif %} + {% unless page.is_post == true %}

{{ post.title }}

+ {% endunless %}
{% if page.is_post and post.next %} diff --git a/_includes/navbar.html b/_includes/navbar.html index 4c0bccc..4a026dd 100644 --- a/_includes/navbar.html +++ b/_includes/navbar.html @@ -1,7 +1,7 @@ -