瀏覽代碼

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)))