diff --git a/_includes/navbar.html b/_includes/navbar.html index 8ae98c5..56d8707 100644 --- a/_includes/navbar.html +++ b/_includes/navbar.html @@ -12,13 +12,18 @@ Home Page - {% if site.categories.articles %} + {% if site.posts %}

Articles

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

{{ currentdate }}

+ {% assign date = currentdate %} + {% endif %} - {{ page.title }} + {{ article.title }} {% endfor %}
diff --git a/_posts/_template/2019-01-01-article-name.md b/_posts/_template/2019-01-01-article-name.md index 7d44221..c1139e0 100644 --- a/_posts/_template/2019-01-01-article-name.md +++ b/_posts/_template/2019-01-01-article-name.md @@ -4,7 +4,6 @@ date: 2019-01-01 7:01 authors: Name image-caption: A caption for the cover image layout: article -categories: articles --- Content