org-mode を使用してブログのコンテンツをエクスポートし、jekyll を使用して結果のブログ ページを生成します。
body-onlyを trueに設定すると、org-project エクスポートに org ファイルのTOC (目次)が含まれないことがわかりました。
emacs が TOC を生成するように設定するにはどうすればよいですか?
これが私の.emacs
構成です:
;; org-mode project define
(setq org-publish-project-alist
'(
("org-blog-content"
;; Path to your org files.
:base-directory "~/ChinaXing.org/org/"
:base-extension "org"
;; Path to your jekyll project.
:publishing-directory "~/ChinaXing.org/jekyll/"
:recursive t
:publishing-function org-publish-org-to-html
:headline-levels 4
:html-extension "html"
:table-of-contents t
:body-only t ;; Only export section between <body></body>
)
("org-blog-static"
:base-directory "~/ChinaXing.org/org/"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|php"
:publishing-directory "~/ChinaXing.org/jekyll/"
:recursive t
:publishing-function org-publish-attachment)
("blog" :components ("org-blog-content" "org-blog-static"))
))