From 9d411d414a2ec6df21126931d3f516bc66b64b2a Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 15 Mar 2020 02:20:16 +0530 Subject: Handle posts without summary metadata. * ennu.el (ennu--read-post): Export summary metadata only if it is non-nil. --- ennu.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ennu.el') diff --git a/ennu.el b/ennu.el index adcae17..93abe57 100644 --- a/ennu.el +++ b/ennu.el @@ -72,7 +72,8 @@ (pcase tangle-output-file ("no" nil) (_ tangle-output-file)))))))) - :summary (funcall export (first (plist-get metadata :summary))) + :summary (when-let (summary (plist-get metadata :summary)) + (funcall export (first summary))) :tags (plist-get metadata :filetags) :thumbnail (or (plist-get metadata :thumbnail) (seq-some (lambda (link) -- cgit v1.2.3