From eedd35be26ffb9a4bd1381bd06426467393758f3 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 18 Jan 2020 12:19:44 +0000 Subject: Fix blog when there are less than 8 posts --- haunt.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/haunt.scm b/haunt.scm index ef11d84..b3244ce 100644 --- a/haunt.scm +++ b/haunt.scm @@ -36,7 +36,9 @@ #:collections `(("Recent posts" "index.html" ,(compose (lambda (posts) - (take posts 8)) + (if (< (length posts) 8) + posts + (take posts 8))) filter-posts-remove-future-drafts posts/reverse-chronological)) ("All posts" "all.html" -- cgit v1.2.3