emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Erik Iverson <eriki@ccbr.umn.edu>
To: Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: Inserting text into the <head> part of an HTML document?
Date: Thu, 18 Nov 2010 16:13:09 -0600	[thread overview]
Message-ID: <4CE5A4F5.3010207@ccbr.umn.edu> (raw)
In-Reply-To: <7905.1290117971@cpc13-cmbg15-2-0-cust889.5-4.cable.virginmedia.com>

Stephen,

There may be a better answer, but I see in the
doc-string for org-export-html-style, that:

As the value of this option simply gets inserted into the HTML <head>
header, you can \"misuse\" it to add arbitrary text to the header.
See also the variable `org-export-html-style-extra'.

However, I doubt you want to use the 'org-export-html-style' variable,
since it looks like you have to specify the entire header, but
perhaps the 'style-extra' version will do what you want?

--Erik

Stephen Eglen wrote:
> I'm using org-mode to export an html file of my org file.  I'd like to
> add the following line to the <head>  ... </head> section of the
> document:
> 
> #+HTML: <meta name="robots" content="noindex, nofollow" />
> 
> [This line tells search indexes not to index the file.
> http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=93710
> ]
> 
> but the HTML directive puts it in the body, rather than the head.
> Any ideas how I'd get it into the head?  I tried +HTML_HEADER as an
> analogy to LATEX_HEADER, but that doesn't seem to be defined.
> 
> Thanks, Stephen
> 
> org-version
> "7.02trans"
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-11-18 22:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-18 22:06 Inserting text into the <head> part of an HTML document? Stephen Eglen
2010-11-18 22:13 ` Erik Iverson [this message]
2010-11-19  4:22   ` Nick Dokos
2010-11-19 21:46     ` Stephen Eglen
2010-11-19 21:53       ` Stephen Eglen

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=4CE5A4F5.3010207@ccbr.umn.edu \
    --to=eriki@ccbr.umn.edu \
    --cc=S.J.Eglen@damtp.cam.ac.uk \
    --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).