emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Exporting meta tags for properties via ox-html
@ 2013-06-01 21:18 Kyle Machulis
  0 siblings, 0 replies; only message in thread
From: Kyle Machulis @ 2013-06-01 21:18 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 873 bytes --]

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
<head>
...
<meta name="title" content="Testing" />
<meta name="description" content="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 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.

[-- Attachment #2: Type: text/html, Size: 1127 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-01 21:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-01 21:18 Exporting meta tags for properties via ox-html Kyle Machulis

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).