소스 검색

Fix write-document to work for feeds.

Brit Butler 11 년 전
부모
커밋
44e82382f3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/documents.lisp

+ 1 - 1
src/documents.lisp

@@ -58,7 +58,7 @@
58 58
 (defun write-document (document &optional theme-fn &rest render-args)
59 59
   "Write the given DOCUMENT to disk as HTML. If THEME-FN is present,
60 60
 use it as the template passing any RENDER-ARGS."
61
-  (let ((html (if render-args
61
+  (let ((html (if (or theme-fn render-args)
62 62
                   (apply #'render-page document theme-fn render-args)
63 63
                   (render-page document nil))))
64 64
     (write-file (page-path obj) html)))