emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: Jason Dunsmore <emacs-orgmode@dunsmor.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Rework org-export-html-preamble/postamble (again)
Date: Thu, 17 Mar 2011 08:08:58 +0100	[thread overview]
Message-ID: <87d3lqp30o.fsf@altern.org> (raw)
In-Reply-To: <87aagwuo3s.fsf@riotblast.dunsmor.com> (Jason Dunsmore's message of "Tue, 15 Mar 2011 15:26:31 -0500")

Hi Jason,

Jason Dunsmore <emacs-orgmode@dunsmor.com> writes:

> Set :html-preamble to:
>
> "<div class=\"menu\"> \
> <a href=\"index.html\">index</a> :: \
> <a href=\"changelog.html\">changelog</a> :: \
> <a href=\"sitemap.html\">sitemap</a> \
> </div>"
>
> When I export as HTML with this config, I don't see an <h1>title</h1>.
> Do you?

I don't -- and this is on purpose.  

> Previously, :html-preamble could be set to a format string without
> "<h1>%t</h1>" and "<h1>title</h1>" would still be exported.

Previously, we had two variables controlling preamble(s): 

`org-export-html-preamble'
`org-export-html-auto-preamble'

the first one defaulted to nil, the last one to "<h1>title</h1>".

So setting `org-export-html-preamble' in any fashing would add a
preamble to the default one (controlled by :auto-preamble in a
publishing project).

You need to set :html-preamble to this:

,----
| "<h1 class=\"title\">%t</h1>
| 
| <div class=\"menu\"> \
| <a href=\"index.html\">index</a> :: \
| <a href=\"changelog.html\">changelog</a> :: \
| <a href=\"sitemap.html\">sitemap</a> \
| </div>"
`----

HTH,

-- 
 Bastien

  reply	other threads:[~2011-03-17  8:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-09 16:17 Bastien
2011-03-09 20:21 ` Jason Dunsmore
2011-03-10  9:27   ` Bastien
2011-03-10 14:46     ` Jason Dunsmore
2011-03-10 18:29       ` Bastien
2011-03-15 15:55         ` Jason Dunsmore
2011-03-15 18:11           ` Bastien
2011-03-15 20:26             ` Jason Dunsmore
2011-03-17  7:08               ` Bastien [this message]
2011-03-15 15:25       ` Bastien

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=87d3lqp30o.fsf@altern.org \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@dunsmor.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Rework org-export-html-preamble/postamble (again)' \
    /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

Code repositories for project(s) associated with this 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).