Sfoglia il codice sorgente

Fix write-document to work for feeds.

Brit Butler 11 anni fa
parent
commit
44e82382f3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)))