blog: Allow nil draft lists
authorLucian Mogosanu <lucian.mogosanu@gmail.com>
Wed, 6 Mar 2019 18:18:39 +0000 (20:18 +0200)
committerLucian Mogosanu <lucian.mogosanu@gmail.com>
Wed, 6 Mar 2019 18:18:51 +0000 (20:18 +0200)
Should really allow nil anylists, but assert forces dumbo to reread
code.

blog.lisp

index e0e3e5b..b08ba39 100644 (file)
--- a/blog.lisp
+++ b/blog.lisp
             *tags* nil))
   (let ((postlist (directory
                    (concatenate 'string *lbs-base* relative-wildcard))))
-    (assert (not (null postlist)))
+    (if (not draft)
+        (assert (not (null postlist))))
     (dolist (x postlist)
       (let* ((relative-pathname (post-relative-pathname x))
              (blist (tlbs-make-blist relative-pathname))