emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Stefan Vollmar <vollmar@nf.mpg.de>
Cc: emacs-orgmode Mode <emacs-orgmode@gnu.org>
Subject: Re: expire tag in Org-Mode HTML export
Date: Mon, 27 Feb 2012 07:35:54 -0500	[thread overview]
Message-ID: <87ehtga1xx.fsf@norang.ca> (raw)
In-Reply-To: <1C77A3A1-A4EF-4AEC-A4B2-26F4727DCDA8@nf.mpg.de> (Stefan Vollmar's message of "Mon, 27 Feb 2012 13:20:53 +0100")

Stefan Vollmar <vollmar@nf.mpg.de> writes:

> Hello,
>
> we want to include a
> <META HTTP-EQUIV="EXPIRES" CONTENT="0">
> entry in the HTML export of our Org pages to indicate that browsers
> should not cache the pages but rather reload them the next time.
>
> This line should go into the "head" part of the HTML pages (otherwise
> "#+html:" would solve the problem) - how can we accomplish this in
> Org-mode?
>
> Many thanks in advance.
> Warm regards,
>  Stefan

Hi Stefan,

You might be able to stick it in the extra style variable like this

--8<---------------cut here---------------start------------->8---
(setq org-export-html-style-extra
     "<meta HTTP-EQUIV=\"EXPIRES\" CONTENT=\"0\">")
--8<---------------cut here---------------end--------------->8---

HTH,
Bernt

  reply	other threads:[~2012-02-27 12:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-27 12:20 expire tag in Org-Mode HTML export Stefan Vollmar
2012-02-27 12:35 ` Bernt Hansen [this message]
2012-02-27 13:48   ` Stefan Vollmar
2012-02-27 14:05     ` Bernt Hansen

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=87ehtga1xx.fsf@norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=vollmar@nf.mpg.de \
    /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).