[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Org-Mode Homepage error
From: |
Bastien |
Subject: |
Re: [O] Org-Mode Homepage error |
Date: |
Tue, 16 Aug 2011 22:10:44 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi Achim,
CC'ing Sebastian in case he can have a look.
Achim Gratz <address@hidden> writes:
> Could you be more specific what is a "no good result"?
Well, the HTML page was empty -- same error than with the unpatched
version of org-info.js.
> I've been
> generating the index.html in org-info-js and it now works without error
> for me. I've even found a simpler patch that is based on the class
> of the title heading so that it is found regardless of its position in
> preamble or content:
>
> Diff --git a/code/org-info-js/org-info-src.js
> b/code/org-info-js/org-info-src.js
> index 2e49e9c..b521c50 100644
> --- a/code/org-info-js/org-info-src.js
> +++ b/code/org-info-js/org-info-src.js
> @@ -738,7 +738,7 @@ var org_html_manager = {
>
> // Move the title into the first visible section.
> // TODO: show title above everything if FIXED_TOC !!!
> - t.TITLE = t.BODY.getElementsByTagName("h1")[0];
> + t.TITLE = document.getElementsByClassName("title")[0];
> if(t.INNER_TITLE && !t.FIXED_TOC && t.VIEW != t.SLIDE_VIEW) {
> t.INNER_TITLE = t.TITLE.cloneNode(true);
> /* TODO: this is still based on wrong behaviour of browsers (same id
> for two elements)
If you're confident this works with this structure:
<div id="preamble">
<h1 class="title">Title</h1>
<div>
<div id="content">
...
<div>
then I will apply the patch (with a ChangeLog!)
Thanks,
--
Bastien
- Re: [O] Org-Mode Homepage error,
Bastien <=