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 09:05:28 -0500	[thread overview]
Message-ID: <87aa449xsn.fsf@norang.ca> (raw)
In-Reply-To: <EBCF361C-AB6A-4089-88FD-459CDADD9227@nf.mpg.de> (Stefan Vollmar's message of "Mon, 27 Feb 2012 14:48:55 +0100")

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

> Dear Bernt,
>
> thanks for the quick reply - unfortunately, this does not solve our
> problem as org-export-html-style-extra is limited to style-related
> information. We would need something that allows extending the "head"
> block with another meta-tag, so org-export-html-preamble is already
> after the head-block and org-export-html-xml-declaration is before the
> head-block.
>
> Warm regards,
>  Stefan

Hi Stefan,

When I tested it it didn't seem embedded inside a style tag.

,----[ export.org ]
| * Export me
| 
| Check the file for header info
| 
| * Done.
| 
| End of file
`----

,----[ export.html ]
| <?xml version="1.0" encoding="iso-8859-1"?>
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|                "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
| <head>
| <title>export</title>
| <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
| <meta name="title" content="export"/>
| <meta name="generator" content="Org-mode"/>
| <meta name="generated" content="2012-02-27 09:02:34 EST"/>
| <meta name="author" content="Bernt Hansen"/>
| <meta name="description" content=""/>
| <meta name="keywords" content=""/>
| <style type="text/css">
|  <!--/*--><![CDATA[/*><!--*/
<snip>
|   /*]]>*/-->
| </style><meta HTTP-EQUIV="EXPIRES" CONTENT="0">
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| <script type="text/javascript">
| <!--/*--><![CDATA[/*><!--*/
<snip>
| /*]]>*///-->
| </script>
| 
| </head>
| <body>
<snip>
| </body>
| </html>
`----

Regards,
Bernt


>
> On 27.02.2012, at 13:35, Bernt Hansen wrote:
>
>> 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 14:05 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
2012-02-27 13:48   ` Stefan Vollmar
2012-02-27 14:05     ` Bernt Hansen [this message]

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=87aa449xsn.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).