Skip to content

Commit

Permalink
Merge pull request #23 from zilongshanren/add-multiple-tags-support
Browse files Browse the repository at this point in the history
add multiple categories support
  • Loading branch information
yoshinari-nomura committed Aug 26, 2015
2 parents 98fd5d6 + f76c986 commit e04d55c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ox-jekyll.el
Expand Up @@ -182,16 +182,19 @@ 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
"---"
"\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")))
Expand Down

0 comments on commit e04d55c

Please sign in to comment.