emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: Sander Boer <sanboer@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: org-publish: Best practice to generate a html header on a per-file basis ?
Date: Tue, 19 Jul 2011 18:36:12 +0200	[thread overview]
Message-ID: <871uxmns77.fsf@altern.org> (raw)
In-Reply-To: <BA158CCC-AC04-4E8C-B8B4-2D8FE4DEF6F5@gmail.com> (Sander Boer's message of "Mon, 18 Jul 2011 23:19:13 +0200")

Hi Sander,

Sander Boer <sanboer@gmail.com> writes:

> I've been investigating a viable way to generate for every exported html
> file in an org-publish project a list of links to all the other html files
> in the directory-tree and I'm stuck.

Not tested: perhaps you can try to generate the sitemap.org file and
include it into your other Org files with #+INCLUDE?  

> Incidently, it took a long time to figure out that one cannot pass
> mere functions to html-preamble like this:

> :html-preamble 'my-cool-function-that-returns-a-string

You can use 

  :html-preamble my-cool-function-that-returns-a-string

with no "'"

Note that this function must take no argument and output a string 
since the commit I just pushed.

Thanks,

-- 
 Bastien

      reply	other threads:[~2011-07-20 13:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-18 21:19 org-publish: Best practice to generate a html header on a per-file basis ? Sander Boer
2011-07-19 16:36 ` Bastien [this message]

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=871uxmns77.fsf@altern.org \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=sanboer@gmail.com \
    /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).