emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Jürgen Hötzel" <juergen@hoetzel.info>
To: emacs-orgmode@gnu.org
Subject: org-html-publish-to-html: embed HTML in first line of export
Date: Wed, 4 Dec 2013 20:30:57 +0100	[thread overview]
Message-ID: <CANmXxHMmoxWg-F77-syTGhg_XARi89=5fJG8vVS9Esm9Vsc4vg@mail.gmail.com> (raw)

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 lines:

#+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:

<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1. Section</a></li>
</ul>
</div>
</div>
---
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
---

<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1. Section</a></li>
</ul>
</div>
</div>


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ürgen

             reply	other threads:[~2013-12-04 19:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-04 19:30 Jürgen Hötzel [this message]
2013-12-04 22:23 ` org-html-publish-to-html: embed HTML in first line of export Nicolas Goaziou
2013-12-05  2:59   ` Nick Dokos
2013-12-05  8:46   ` Jürgen Hötzel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CANmXxHMmoxWg-F77-syTGhg_XARi89=5fJG8vVS9Esm9Vsc4vg@mail.gmail.com' \
    --to=juergen@hoetzel.info \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).