diff --git a/_includes/components/sections/recent-posts.njk b/_includes/components/sections/recent-posts.njk
index 2719beb..b4e9a3b 100644
--- a/_includes/components/sections/recent-posts.njk
+++ b/_includes/components/sections/recent-posts.njk
@@ -21,6 +21,7 @@
+ {% set postsShown = 0 %}
{% for post in listedPosts | head(maxItems) %}
{% set rawVisibility = post.data.visibility or post.data.properties.visibility %}
{% set visibility = (rawVisibility is array) ? rawVisibility[0] : rawVisibility %}
@@ -31,6 +32,12 @@
{# Skip private and where/Loc posts #}
{% continue %}
{% endif %}
+ {% set postsShown = postsShown + 1 %}
+ ...existing code...
+ {% endfor %}
+ {% if postsShown == 0 %}
+ - No recent posts available.
+ {% endif %}
{# Detect post type from frontmatter properties #}
{% set likedUrl = post.data.likeOf or post.data.like_of %}
{% set bookmarkedUrl = post.data.bookmarkOf or post.data.bookmark_of %}