Table of Contents
pelican 原生支援的格式目前有 rst 與 markdown
透過 plugin 也能支援 org mode
https://github.com/getpelican/pelican-plugins/tree/master/org_reader
1 安裝 org reader
下載 pelican plugins
git clone https://github.com/getpelican/pelican-plugins
pelicanconf.py 設定
PLUGINS = ['tipue_search', 'sitemap', 'extract_toc', 'org_reader'] ORG_READER_EMACS_LOCATION = '/Applications/Emacs.app/Contents/MacOS/Emacs' ORG_READER_EMACS_LOCATION = '/usr/local/bin/emacs'
設定好之後
在 content 資料夾內的 org 檔 在下 make 指令時 也會跟著被處理為 html
2 範例
The TITLE is the only mandatory header property
#+TITLE: The Title Of This BlogPost #+DATE: 2001-01-01 #+CATEGORY: blog-category #+AUTHOR: My Name #+PROPERTY: LANGUAGE en #+PROPERTY: SUMMARY hello, this is the description #+PROPERTY: SLUG test_slug #+PROPERTY: MODIFIED [2015-12-29 Di] #+PROPERTY: TAGS my, first, tags #+PROPERTY: SAVE_AS alternative_filename.html
3 reference
4 misc
Cannot fontify src block (htmlize.el >= 1.34 required) http://doblogit.com/blogs/2016-09-10-org-syntax.html