diff --git a/templates/macros.html.tera b/templates/macros.html.tera index f1c9343b..b336f281 100644 --- a/templates/macros.html.tera +++ b/templates/macros.html.tera @@ -77,10 +77,12 @@ {% endmacro %} {% macro home_feed(title, link, articles) %} -

{{ title | _ }} — {{ "View all" | _ }}

-
- {% for article in articles %} - {{ macros::post_card(article=article) }} - {% endfor %} -
+ {% if articles | length > 0 %} +

{{ title | _ }} — {{ "View all" | _ }}

+
+ {% for article in articles %} + {{ macros::post_card(article=article) }} + {% endfor %} +
+ {% endif %} {% endmacro %}