From e83b52ef4e6ca122fb196bf666e08544ad945e01 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 14 Mar 2020 22:58:05 +0530 Subject: Consider org-export-with-author when exporting author. * ennu.el (ennu--feed-entry): Export author only when org-export-with-author is non-nil. --- ennu.el | 7 ++++--- 1 file 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))) -- cgit v1.2.3