From f76c986b4daac045dba526742d355852d03f836e Mon Sep 17 00:00:00 2001 From: andyque Date: Mon, 24 Aug 2015 13:53:53 +0800 Subject: [PATCH] add multiple categories support --- ox-jekyll.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ox-jekyll.el b/ox-jekyll.el index 627a6e7..a9713ab 100644 --- a/ox-jekyll.el +++ b/ox-jekyll.el @@ -182,7 +182,10 @@ holding export options." (published (org-jekyll--get-option info :jekyll-published org-jekyll-published)) (comments - (org-jekyll--get-option info :jekyll-comments))) + (org-jekyll--get-option info :jekyll-comments)) + (convert-to-yaml-list + (lambda (arg) + (mapconcat #'(lambda (text)(concat "\n- " text)) (split-string arg) " ")))) (unless (equal published "true") (setq title (concat "[PREVIEW] " title))) (concat @@ -190,8 +193,8 @@ holding export options." "\ntitle: \"" title "\"\ndate: " date "\nlayout: " layout - "\ncategories: " categories - "\ntags: " (mapconcat #'(lambda (text)(concat "\n- " text)) (split-string tags) " ") + "\ncategories: " (funcall convert-to-yaml-list categories) + "\ntags: " (funcall convert-to-yaml-list tags) "\npublished: " published "\ncomments: " comments "\n---\n")))