summaryrefslogtreecommitdiff
path: root/ennu.el
diff options
context:
space:
mode:
authorArun Isaac2020-03-14 22:58:05 +0530
committerArun Isaac2020-03-15 02:35:11 +0530
commite83b52ef4e6ca122fb196bf666e08544ad945e01 (patch)
treec5891dbd7096713cc8743cd8519754e987c407ce /ennu.el
parentb1b76a30ed130dd5c077237e2c26bac5ce62cd3b (diff)
downloadennum-e83b52ef4e6ca122fb196bf666e08544ad945e01.tar.gz
ennum-e83b52ef4e6ca122fb196bf666e08544ad945e01.tar.lz
ennum-e83b52ef4e6ca122fb196bf666e08544ad945e01.zip
Consider org-export-with-author when exporting author.
* ennu.el (ennu--feed-entry): Export author only when org-export-with-author is non-nil.
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)))