Hello,
>> Because the OP wants to include the same menu on every page.
To better explain my problem:
1. I would like to define my navigation menu once (as some "variable" of the
project). For example:
--8<---------------cut here---------------start------------->8---
(setq nav-menu '(("Home" . "index.html")
("About Me" . ( ("CV" .
"curriculum-vitae.html")
("Contact Me" . "contact-me.html")))
("Resources" . ( ("Freeware" . "freeware.html")
("Emacs" . "dot-emacs.html")))))
--8<---------------cut here---------------end--------------->8---
2. I would like this to be converted to HTML for each page, but with a "mark"
that indicates which page is generated (for the CSS to be able to
highlight, in the navigation menu, the page that's currently displayed in
the browser).
For example, for my 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="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 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="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---
So, the question narrows down to: is there a hook available where the correct
code could be placed to achieve such a result?
Thanks a lot,
Seb
--
Sébastien Vauban
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode