[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] expire tag in Org-Mode HTML export
From: |
Bernt Hansen |
Subject: |
Re: [O] expire tag in Org-Mode HTML export |
Date: |
Mon, 27 Feb 2012 09:05:28 -0500 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) |
Stefan Vollmar <address@hidden> 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 <address@hidden> 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