From b1ce7f70dfa44c1e1b2a6b3a8e39a9245f58771b Mon Sep 17 00:00:00 2001 From: Siphalor Date: Tue, 4 May 2021 18:19:29 +0200 Subject: [PATCH] Fix recent posts heading --- _layouts/home.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/_layouts/home.html b/_layouts/home.html index 8cc7673..f915800 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -4,9 +4,9 @@ home: true --- {% include anchor_headings.html html=content anchorClass="anchor-head" beforeHeading=true h_min=1 h_max=4 %} -{%- if site.length > 0 -%} -

Recent Posts

-{%- endif -%} +{%- if site.posts != empty -%} +

Recent Posts

+
{%- for post in site.posts limit: site.number_of_posts -%}
{{ post.date | date: "%b %d, %Y" }} @@ -15,3 +15,5 @@ home: true
{%- endfor -%} +
+{%- endif -%}