diff options
author | Christopher Baines <mail@cbaines.net> | 2020-01-18 12:19:44 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-01-18 12:19:44 +0000 |
commit | eedd35be26ffb9a4bd1381bd06426467393758f3 (patch) | |
tree | d79e27ef72146f53b12b5dae04b863cf71c27748 | |
parent | d97f327f670d881b72f3b818502e29e9fbcb2e6b (diff) | |
download | weekly-news-eedd35be26ffb9a4bd1381bd06426467393758f3.tar weekly-news-eedd35be26ffb9a4bd1381bd06426467393758f3.tar.gz |
Fix blog when there are less than 8 posts
-rw-r--r-- | haunt.scm | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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" |