From 24ecff59b699453ec5fd307e5249a590f7316989 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 15 Mar 2020 02:18:50 +0530 Subject: Handle posts with no author metadata. * ennu.el (ennu--read-post): Export author metadata only if it is non-nil. --- ennu.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ennu.el b/ennu.el index 4d5b0ff..adcae17 100644 --- a/ennu.el +++ b/ennu.el @@ -57,7 +57,8 @@ (ennu-make-post :filename filename :slug (file-name-base filename) - :author (funcall export (first (plist-get metadata :author))) + :author (when-let (author (plist-get metadata :author)) + (funcall export (first author))) :date (org-timestamp-to-time (first (plist-get metadata :date))) :language (plist-get metadata :language) :links links -- cgit v1.2.3