From: Kyle Machulis <kyle@nonpolynomial.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Exporting meta tags for properties via ox-html
Date: Sat, 1 Jun 2013 14:18:42 -0700 [thread overview]
Message-ID: <CAF1EFccCNJiujztGDC5noUWNLBNOe6VBrDT+CFn4T4XCfUvZWQ@mail.gmail.com> (raw)
[-- 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 --]
reply other threads:[~2013-06-01 21:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CAF1EFccCNJiujztGDC5noUWNLBNOe6VBrDT+CFn4T4XCfUvZWQ@mail.gmail.com \
--to=kyle@nonpolynomial.com \
--cc=emacs-orgmode@gnu.org \
/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).