After reading existing tutorials about org-mode and jekyll:
And making them work…
I was not satisfied with the existing solution.
Why? Because we need to adapt the org-mode file with specific jekyll yaml settings inside an org-mode html block code.
But here is my thing, I don't want to adapt org with alien yaml or any other strange metadata. I'd like to have some standard org metadata, for example:
#+LAYOUT: post #+AUTHOR: ardumont #+DATE: 2014-12-19 Fri 23:49 #+STARTUP: showall #+STARTUP: hidestars #+OPTIONS: H:2 num:nil tags:nil toc:1 timestamps:t #+TITLE: hello #+DESCRIPTION: some description #+CATEGORIES: some-category
Then publish the blog post (M-x org2jekyll/publish!).
Using some emacs-lisp incantation, we can make org-publish and jekyll work together.
So, here comes https://github.com/ardumont/org2jekyll…
For this to work, you need to have this ready:
- org-publish (ox-publish since 24.4)
Here is my working setup:
Ok, I'm sold! How do I install org2jekyll?
(require 'package) (add-to-list 'package-archives '("marmalade" . "https://marmalade-repo.org/packages/") t) (package-initialize)
M-x package-install RET org2jekyll RET
M-x package-install-file RET org2jekyll.tar
I used a lot the great org2blog (org -> wordpress bridge) and was inspired by the name and the org headers approach.