summaryrefslogtreecommitdiff
path: root/ennu.el
diff options
context:
space:
mode:
Diffstat (limited to 'ennu.el')
-rw-r--r--ennu.el3
1 files changed, 2 insertions, 1 deletions
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