Remove redundant code

This commit is contained in:
2020-03-09 12:41:55 +00:00
parent 66a59103c8
commit ed7149e2bf
4 changed files with 8 additions and 9 deletions

View File

@@ -4,9 +4,9 @@ description: News articles written by Reading School students in year 8
layout: home
---
{% if site.categories.articles %}
{% if site.posts %}
{% assign currentdate_count = 0 %}
{% assign articles = site.categories.articles | sort: date | reverse %}
{% assign articles = site.posts | sort: date | reverse %}
{% for article in articles %}
{% assign currentdate = article.date | date: "%Y" %}
{% if currentdate != date %}