Org-octopress is a package to help users those who want to write blog articles in org-style using Octopress (or Jekyll).
Note: This package is compatible with the upcoming org 8.0 system. (aka New Exporter)
- orglue
- Add some functionality to org-mode. https://github.com/yoshinari-nomura/orglue
- emacs-ctable
- Table Component for elisp https://github.com/kiwanami/emacs-ctable
- epic
- Evernote Picker for Cocoa Emacs (Mac user Only) https://github.com/yoshinari-nomura/epic
+ octopress + source + blog <- (1) You compose YYYY-MM-DD-title.org + _posts <- (2) ox-jekyll.el exports to YYYY-MM-DD-title.html (w/ YAML) + public + blog <- (3) Jekyll exports to YYYY-MM-DD-title.html (w/o YAML).
If you have some pictures to be included in your articles, I recommend you to locate them at a sub-directory of blog/. It’ll nice to maintain the relative position with article files.
In this work flow, YYYY-MM-DD-title.org will be also published to your web site. If you want to hide the original Org files, you will have to setup Octopress publish settings to exclude org files in your blog/ directory.
(require 'org-octopress) (setq org-octopress-directory-top "~/octopress/source") (setq org-octopress-directory-posts "~/octopress/source/_posts") (setq org-octopress-directory-org-top "~/octopress/source") (setq org-octopress-directory-org-posts "~/octopress/source/blog") (setq org-octopress-setup-file "~/org-sty/setupfile.org")
In octopress/_config.yml, you must set the permelink attribute:
permalink: /blog/:year-:month-:day-:title.html
- M-x org-octopress
- Compose YYYY-MM-DD-title.org in source/blog directory.
- C-c C-e (org-export-dispatch) and type “P” “x” “octopress”
- In command line terminal:
rake preview
(see Octopress Documentation - Octopress for details)
- Check your article in browser.
The updated version might be available from: http://github.com/yoshinari-nomura/org-octopress