From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Machulis Subject: Exporting meta tags for properties via ox-html Date: Sat, 1 Jun 2013 14:18:42 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2d2f8a59ade04de1e462c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UitCG-0003vr-Cd for emacs-orgmode@gnu.org; Sat, 01 Jun 2013 17:18:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UitCF-0003iM-DI for emacs-orgmode@gnu.org; Sat, 01 Jun 2013 17:18:44 -0400 Received: from mail-ve0-x230.google.com ([2607:f8b0:400c:c01::230]:52494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UitCF-0003iC-9N for emacs-orgmode@gnu.org; Sat, 01 Jun 2013 17:18:43 -0400 Received: by mail-ve0-f176.google.com with SMTP id c13so1968444vea.21 for ; Sat, 01 Jun 2013 14:18:42 -0700 (PDT) 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 --001a11c2d2f8a59ade04de1e462c Content-Type: text/plain; charset=ISO-8859-1 I've got a bunch of file level properties that I'd like to be able to export as header meta tags in HTML. So if I've got #+TITLE: Testing #+DESCRIPTION: Testing 1 2 3 I could actually get output like ... ... And so on. The org-html-head and org-html-head-extra variables exist to be able to do this project wide for publishing, but they expect stringp, not a function that can be run per file. Is there a decent way to do this that doesn't involve adding #+HTML_HEAD_EXTRA blocks to the files? I suppose I could chain a publishing function in to add what I need before going to HTML, but that seems a like a heavyweight option. Honestly, something like org-html-preamble-format would be nice, but that may not be a great API addition since it's weirdly specific. --001a11c2d2f8a59ade04de1e462c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I've got a bunch of file= level properties that I'd like to be able to export as header meta tag= s in HTML. So if I've got

#+TITLE: Testing
#+DESCRIPTION: Testing 1 2 3

I could actually get output like
<head>
...
<meta name=3D"title" cont= ent=3D"Testing" />
<meta name=3D"description&= quot; content=3D"Testing 1 2 3" />
...
</head>

And so on. The org-= html-head and org-html-head-extra variables exist to be able to do this pro= ject wide for publishing, but they expect stringp, not a function that can = be run per file. Is there a decent way to do this that doesn't involve = adding #+HTML_HEAD_EXTRA blocks to the files? I suppose I could chain a pub= lishing function in to add what I need before going to HTML, but that seems= a like a heavyweight option. Honestly, something like org-html-preamble-fo= rmat would be nice, but that may not be a great API addition since it's= weirdly specific.
--001a11c2d2f8a59ade04de1e462c--