From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien 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 Message-ID: <871uxmns77.fsf@altern.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjWn7-0006kn-RE for emacs-orgmode@gnu.org; Wed, 20 Jul 2011 09:26:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjWn2-0007gY-Bx for emacs-orgmode@gnu.org; Wed, 20 Jul 2011 09:26:21 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:41183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjWn1-0007bj-VO for emacs-orgmode@gnu.org; Wed, 20 Jul 2011 09:26:16 -0400 Received: by mail-wy0-f169.google.com with SMTP id 36so201109wyg.0 for ; Wed, 20 Jul 2011 06:26:15 -0700 (PDT) In-Reply-To: (Sander Boer's message of "Mon, 18 Jul 2011 23:19:13 +0200") 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: Sander Boer Cc: "emacs-orgmode@gnu.org" Hi Sander, Sander Boer 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