title: How can I use org-mode to export html with TOC (table-of-content) when body-only is t?
body: <p>I use org-mode to export the content of a blog, then use jekyll to produce the result blog page.</p>
  
  <p>I found that when I set the <strong>body-only</strong> to true, the org-project export does not contain the <strong>TOC</strong>(table of content) of the org file.</p>
  
  <p>How can I config to let emacs produce the TOC?</p>
  
  <p>Here is my <code>.emacs</code> configuration:</p>
  
  <pre><code>;; 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 &lt;body&gt;&lt;/body&gt;                                                                    
           )
  
          ("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"))
          ))
  </code></pre>