emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Fully featured Web publishing


From: Sébastien Vauban
Subject: [Orgmode] Re: Fully featured Web publishing
Date: Thu, 19 Mar 2009 10:43:00 +0100
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux)

Hi all,

Thanks for your input...

Rasmus Pank Roulund wrote:
>> Why not us preamble?
>
> Because the OP wants to include the same menu on every page. If you input
> the file you will only have to update one file and the other files will be
> updated.

I can't use your solutions, as the navigation menu is almost identical, but it
is not completely: the keyword `current' has to be appended to the entry the
page is about.

>>   The only real problem that I see (the above being nice-to-have's) is the
>>   following: I want to have a common navigation menu, but whose current
>>   page is highlighted. To do so, I just have to add the class `current' to
>>   the current entry, but this means the navigation menu is not constant
>>   between pages!

For example, my menu will be this one for the _home page_:

--8<---------------cut here---------------start------------->8---
<div id="navigation">
<h2>Navigation</h2>
<ul>
    <li><a href="index.html" title="Home" class="current">Home</a></li>
                                     <!-- ^^^^^^^^^^^^^^^ -->
    <li>About Me
    <ul>
        <li><a href="curriculum-vitae.html" title="CV">CV</a></li>
        <li><a href="pgp-public-key.html" title="PGP Public Key">PGP Public 
Key</a></li>
        <li><a href="contact-me.html" title="Contact Me">Contact Me</a></li>
    </ul>
    </li>
    <li>Resources
    <ul>
        <li><a href="freeware.html" title="Freeware">Freeware</a></li>
        <li><a href="dot-emacs.html" title="Emacs">Emacs</a></li>
    </ul>
    </li>
</ul>
</div>
--8<---------------cut here---------------end--------------->8---

and this one for my _CV_:

--8<---------------cut here---------------start------------->8---
<div id="navigation">
<h2>Navigation</h2>
<ul>
    <li><a href="index.html" title="Home" class="current">Home</a></li>
    <li>About Me
    <ul>
        <li><a href="curriculum-vitae.html" title="CV" 
class="current">CV</a></li>
                                                  <!-- ^^^^^^^^^^^^^^^ -->
        <li><a href="pgp-public-key.html" title="PGP Public Key">PGP Public 
Key</a></li>
        <li><a href="contact-me.html" title="Contact Me">Contact Me</a></li>
    </ul>
    </li>
    <li>Resources
    <ul>
        <li><a href="freeware.html" title="Freeware">Freeware</a></li>
        <li><a href="dot-emacs.html" title="Emacs">Emacs</a></li>
    </ul>
    </li>
</ul>
</div>
--8<---------------cut here---------------end--------------->8---

The skeleton is static, but the instantiated navigation menu for a specific
page should be computed automatically, when publishing...

I hope I now have clearly expressed my point. If yes, do you see any solution
for me?

Best regards,
  Seb

-- 
Sébastien Vauban




reply via email to

[Prev in Thread] Current Thread [Next in Thread]