From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hongxu Chen Subject: Can I specify the location of generated html in org 8? Date: Sat, 11 May 2013 21:03:42 +0800 Message-ID: <87zjw18y8h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ub9So-0002T2-UJ for emacs-orgmode@gnu.org; Sat, 11 May 2013 09:03:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ub9Sl-0000sg-54 for emacs-orgmode@gnu.org; Sat, 11 May 2013 09:03:50 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:46782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ub9Sk-0000sc-VV for emacs-orgmode@gnu.org; Sat, 11 May 2013 09:03:47 -0400 Received: by mail-pd0-f180.google.com with SMTP id t10so3357836pdi.25 for ; Sat, 11 May 2013 06:03:45 -0700 (PDT) Received: from hongxuchen-VM.STAP ([202.120.40.98]) by mx.google.com with ESMTPSA id lq4sm1013918pab.19.2013.05.11.06.03.43 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 11 May 2013 06:03:44 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, I just switch from org7.x to 8, and there are many problems when I use it for publishing htmls, one of which is the location of table of contents in the generated htmls. Since I am still using jekyll to generate the final pages, I need to put some metadata in the beginning of org files. So I need to add the following into the primitive org file: #+BEGIN_HTML --- layout: org id: elispintro title: An Introduction To Emacs Lisp --- #+END_HTML The generated htmls do contain the `---' contents. However I cannot utilize jekyll when I also generate TOC for it. The root cause is that the generated TOC is put ahead of the `---' area so jekyll cannot find the information and treat this region as an ordinary one. In org 7.x there seems no such a problem. So is there any way to change the location of the table of contents parts? Alternatively, if it needs quite a lot of hacking for org exporters, can you suggest any good template for publishing? Presently I am using this one:https://github.com/cinsk/jekyll-org, but it seems that the author haven't updated it for several month. Thanks in advance. -- Regards, Hongxu Chen