diff --git a/_includes/components/sections/recent-posts.njk b/_includes/components/sections/recent-posts.njk index 5e9f2ed..9f33f1d 100644 --- a/_includes/components/sections/recent-posts.njk +++ b/_includes/components/sections/recent-posts.njk @@ -84,9 +84,9 @@ {{ post.date | dateDisplay }} - {% if post.data.title %} + {% if post.data.title and (post.data.title | trim) %}

- {{ post.data.title }} + {{ post.data.title | trim }}

{% endif %} {{ bookmarkedUrl | unfurlCard | safe }} @@ -194,11 +194,11 @@ - {% elif post.data.title %} + {% elif post.data.title and (post.data.title | trim) %} {# ── Article card ── #}

- {{ post.data.title }} + {{ post.data.title | trim }}

{% if showSummary and post.templateContent %} diff --git a/theme/_includes/components/sections/recent-posts.njk b/theme/_includes/components/sections/recent-posts.njk index 6c89b14..e7b459b 100644 --- a/theme/_includes/components/sections/recent-posts.njk +++ b/theme/_includes/components/sections/recent-posts.njk @@ -84,9 +84,9 @@ {{ post.date | dateDisplay }} - {% if post.data.title %} + {% if post.data.title and (post.data.title | trim) %}

- {{ post.data.title }} + {{ post.data.title | trim }}

{% endif %} {{ bookmarkedUrl | unfurlCard | safe }} @@ -194,11 +194,11 @@ - {% elif post.data.title %} + {% elif post.data.title and (post.data.title | trim) %} {# ── Article card ── #}

- {{ post.data.title }} + {{ post.data.title | trim }}

{% if showSummary and post.templateContent %}