diff options
author | Arun Isaac | 2020-03-15 02:18:50 +0530 |
---|---|---|
committer | Arun Isaac | 2020-03-15 02:35:11 +0530 |
commit | 24ecff59b699453ec5fd307e5249a590f7316989 (patch) | |
tree | 4d9bdb583606528304d5933fad36048f90646842 | |
parent | e83b52ef4e6ca122fb196bf666e08544ad945e01 (diff) | |
download | ennum-24ecff59b699453ec5fd307e5249a590f7316989.tar.gz ennum-24ecff59b699453ec5fd307e5249a590f7316989.tar.lz ennum-24ecff59b699453ec5fd307e5249a590f7316989.zip |
Handle posts with no author metadata.
* ennu.el (ennu--read-post): Export author metadata only if it is
non-nil.
-rw-r--r-- | ennu.el | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |