From 9fb6ea5d41817b3942cda1980aad945c0af70c7c Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Tue, 5 Feb 2019 08:14:34 +0000 Subject: [PATCH] Add categories to articles again --- _includes/navbar.html | 4 ++-- _posts/_template/2019-01-01-article-name.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/_includes/navbar.html b/_includes/navbar.html index 56d8707..0283432 100644 --- a/_includes/navbar.html +++ b/_includes/navbar.html @@ -12,10 +12,10 @@ Home Page - {% if site.posts %} + {% if site.categories.articles %}

Articles

- {% for article in site.posts %} + {% for article in site.categories.articles %} {% assign currentdate = article.date | date: "%Y" %} {% if currentdate != date %}

{{ currentdate }}

diff --git a/_posts/_template/2019-01-01-article-name.md b/_posts/_template/2019-01-01-article-name.md index c1139e0..7d44221 100644 --- a/_posts/_template/2019-01-01-article-name.md +++ b/_posts/_template/2019-01-01-article-name.md @@ -4,6 +4,7 @@ date: 2019-01-01 7:01 authors: Name image-caption: A caption for the cover image layout: article +categories: articles --- Content