From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?U8OpYmFzdGllbiBCcmlzYXJk?= Subject: org-html-h Date: Mon, 26 Jan 2015 21:36:54 +0100 Message-ID: <54C6A566.2020607@m4x.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFqPC-0000SJ-Kh for emacs-orgmode@gnu.org; Mon, 26 Jan 2015 15:37:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFqP9-00076Z-FX for emacs-orgmode@gnu.org; Mon, 26 Jan 2015 15:37:06 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:50668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFqP9-00075H-8s for emacs-orgmode@gnu.org; Mon, 26 Jan 2015 15:37:03 -0500 Received: from pc6.home (AAubervilliers-651-1-153-69.w86-212.abo.wanadoo.fr [86.212.192.69]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 64A011408EEE4 for ; Mon, 26 Jan 2015 21:36:56 +0100 (CET) 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 Hello, my blog (sbrisard.github.io) is entirely written with org-mode. Org-mode=20 offers everything I need, except for one minor detail. It is very=20 difficult to include the same CSS file in the html-head of several files=20 located at various levels of the directory hierarchy. I do not really like this trick=20 http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html#sec-= 6.=20 For the time being, I configured several projects (one for each level),=20 see https://github.com/sbrisard/blog/blob/master/sb-blog.el. But I am=20 not happy with this solution either. I think that it would be great if org-html-head and org-html-head-extra=20 behaved as org-html-preamble and org-html-postamble, which can be set to=20 either a string, or a function. This offers great flexibility for the=20 configuration of the pre/postamble (I use it to conditionnaly include=20 DISQUS comments in the postamble). Would it be possible to mimick the same behavior with org-html-head and=20 org-html-head-extra? Or would this be too much work? Thanks for your thoughts, S=C3=A9bastien