aboutsummaryrefslogtreecommitdiff
path: root/ennu.el
diff options
context:
space:
mode:
Diffstat (limited to 'ennu.el')
-rw-r--r--ennu.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/ennu.el b/ennu.el
index 613f61a..4d5b0ff 100644
--- a/ennu.el
+++ b/ennu.el
@@ -259,9 +259,10 @@ last form in BODY."
`(entry (id ,link)
(title :xml:lang ,(ennu-post-language post) ,(ennu-post-title post))
(updated ,(ennu--atom-date (ennu-post-date post)))
- (author
- (name ,(ennu-post-author post))
- (email ,user-mail-address))
+ ,@(when org-export-with-author
+ `((author
+ (name ,(ennu-post-author post))
+ (email ,user-mail-address))))
(content :type "html" :xml:lang ,(ennu-post-language post)
,(ennu-with-file-contents (ennu-post-filename post)
(org-export-as 'ennu-html nil nil t)))