diff --git a/_includes/header.html b/_includes/header.html index 0fded65..93633bd 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -36,14 +36,18 @@
New Articles
- {% for post in site.posts limit: 5 %} - - {% if forloop.index == 3 %} -
-
+ + {% assign counter = 0 %} + + {% for post in site.posts limit: 10 %} + {% if post.category == "coverstory" %} + {% continue %} {% endif %} - -
+ {% assign counter = counter | plus:1 %} + {% if counter > 5 %} + {% break %} + {% else %} +
@@ -51,17 +55,18 @@
- {% if forloop.index < 3 %} + {% if counter < 3 %}
{% if post.excerpt != null %}{{ post.excerpt | markdownify }}{% endif %}
{% endif %}
+ {% endif %} {% endfor %}