diff --git a/templates/users/details.tera b/templates/users/details.tera
index 33982214..d225a300 100644
--- a/templates/users/details.tera
+++ b/templates/users/details.tera
@@ -31,17 +31,21 @@
{{ user.summary | safe }}
-
Latest articles
-
- {% for article in recents %}
- {{ macros::post_card(article=article) }}
- {% endfor %}
-
+ {% if recents | length != 0 %}
+ Latest articles
+
+ {% for article in recents %}
+ {{ macros::post_card(article=article) }}
+ {% endfor %}
+
+ {% endif %}
- Recently reshared
-
- {% for article in reshares %}
- {{ macros::post_card(article=article) }}
- {% endfor %}
-
+ {% if reshares | length != 0 %}
+ Recently reshared
+
+ {% for article in reshares %}
+ {{ macros::post_card(article=article) }}
+ {% endfor %}
+
+ {% endif %}
{% endblock content %}