From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?J=FCrgen_H=F6tzel?= Subject: org-html-publish-to-html: embed HTML in first line of export Date: Wed, 4 Dec 2013 20:30:57 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoIAQ-0006Qh-0o for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 14:31:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoIAJ-00086r-Fn for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 14:31:25 -0500 Received: from mail-pd0-f178.google.com ([209.85.192.178]:46016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoIAJ-00085n-9Z for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 14:31:19 -0500 Received: by mail-pd0-f178.google.com with SMTP id y10so22812800pdj.23 for ; Wed, 04 Dec 2013 11:31:17 -0800 (PST) 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 use a Org/Jekyll setup: http://orgmode.org/worg/org-tutorials/org-jekyll.= html As described in the tutorial, each Org file must start with the following l= ines: #+BEGIN_HTML --- layout: default title: Org Test excerpt: Excerpt from Org --- #+END_HTML because Jekyll needs the meta information on top of a HTML file for processing the pages. As of the release of Org 8.0 (with the new export framework) the order of the table of contents and the HTML environment (i inserted on top of the Org file) has changed. With the new exporter I get this:

Table of Contents

--- layout: default title: Org Test excerpt: Excerpt from Org --- wheres with the old exporter i got: --- layout: default title: Org Test excerpt: Excerpt from Org ---

Table of Contents

So Jekyll can't process files and the resulted HTML pages are corrupted Any hints, how i can change the order of the TOC and HTML environment? Thank! J=FCrgen From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-html-publish-to-html: embed HTML in first line of export Date: Wed, 04 Dec 2013 23:23:13 +0100 Message-ID: <87iov4uuge.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoKqR-0003y9-VU for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 17:23:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoKqM-0004hr-4Q for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 17:22:59 -0500 Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:37365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoKqL-0004hk-Ss for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 17:22:54 -0500 Received: by mail-we0-f172.google.com with SMTP id w62so10125898wes.17 for ; Wed, 04 Dec 2013 14:22:53 -0800 (PST) In-Reply-To: (=?utf-8?Q?=22J=C3=BCrgen_H=C3=B6tzel=22's?= message of "Wed, 4 Dec 2013 20:30:57 +0100") 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: =?utf-8?Q?J=C3=BCrgen_H=C3=B6tzel?= Cc: emacs-orgmode@gnu.org Hello, J=C3=BCrgen H=C3=B6tzel writes: > So Jekyll can't process files and the resulted HTML pages are corrupted > > Any hints, how i can change the order of the TOC and HTML environment? 1. Disable default TOC with, e.g. #+options: toc:nil 2. Insert your HTML environment 3. Insert TOC after it with "#+TOC: headlines". Regards, --=20 Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-html-publish-to-html: embed HTML in first line of export Date: Wed, 04 Dec 2013 21:59:02 -0500 Message-ID: <87mwkgxatl.fsf@gmail.com> References: <87iov4uuge.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoP9v-00054R-Hj for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 21:59:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoP9q-0003Ic-6Z for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 21:59:23 -0500 Received: from plane.gmane.org ([80.91.229.3]:48631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoP9p-0003IW-W6 for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 21:59:18 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VoP9l-000083-D5 for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 03:59:13 +0100 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Dec 2013 03:59:13 +0100 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Dec 2013 03:59:13 +0100 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 Nicolas Goaziou writes: > Hello, > > Jürgen Hötzel writes: > >> So Jekyll can't process files and the resulted HTML pages are corrupted >> >> Any hints, how i can change the order of the TOC and HTML environment? > > 1. Disable default TOC with, e.g. #+options: toc:nil > 2. Insert your HTML environment > 3. Insert TOC after it with "#+TOC: headlines". > > The OP talks about changing the order of the TOC and the YAML front-matter but according to the Jekyll docs [fn:1], this is not enough: ,---- | Front-matter | | The front-matter is where Jekyll starts to get really cool. Any file | that contains a YAML front matter block will be processed by Jekyll as a | special file. The front matter must be the first thing in the file and | must take the form of valid YAML set between triple-dashed lines. Here | is a basic example: | | --- | layout: post | title: Blogging Like a Hacker | --- `---- Footnotes: [fn:1] http://jekyllrb.com/docs/frontmatter/ -- Nick From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?J=FCrgen_H=F6tzel?= Subject: Re: org-html-publish-to-html: embed HTML in first line of export Date: Thu, 5 Dec 2013 09:46:53 +0100 Message-ID: References: <87iov4uuge.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoUaf-0006sO-Uc for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 03:47:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoUaZ-0005UK-QJ for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 03:47:21 -0500 Received: from mail-pb0-f51.google.com ([209.85.160.51]:52427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoUaZ-0005UE-KI for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 03:47:15 -0500 Received: by mail-pb0-f51.google.com with SMTP id up15so25279467pbc.24 for ; Thu, 05 Dec 2013 00:47:14 -0800 (PST) In-Reply-To: <87iov4uuge.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org On Wed, Dec 4, 2013 at 11:23 PM, Nicolas Goaziou wrot= e: > Hello, > > J=FCrgen H=F6tzel writes: > >> So Jekyll can't process files and the resulted HTML pages are corrupted >> >> Any hints, how i can change the order of the TOC and HTML environment? > > 1. Disable default TOC with, e.g. #+options: toc:nil > 2. Insert your HTML environment > 3. Insert TOC after it with "#+TOC: headlines". Thanks! This fixed the problem! J=FCrgen