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: Mon, 23 Mar 2009 12:36:39 +0100
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux)

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




reply via email to

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