emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <zthjwsqqafhv-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Fully featured Web publishing
Date: Mon, 23 Mar 2009 12:36:39 +0100	[thread overview]
Message-ID: <87k56glbco.fsf@mundaneum.com> (raw)
In-Reply-To: 877i2l7bap.fsf@mundaneum.com

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.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2009-03-23 11:36 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-18 16:04 Fully featured Web publishing Sébastien Vauban
2009-03-18 16:57 ` Sebastian Rose
2009-03-18 21:20   ` Sébastien Vauban
2009-03-18 22:38     ` Sebastian Rose
2009-03-18 22:56       ` Rasmus Pank Roulund
2009-03-18 23:19         ` Richard Riley
2009-03-19  7:46           ` Rasmus Pank Roulund
2009-03-19  8:28             ` Richard Riley
2009-03-19  9:43             ` Sébastien Vauban
2009-03-23 11:36               ` Sébastien Vauban [this message]
2009-03-23 13:50                 ` Taru Karttunen
2009-03-19 10:37           ` Sebastian Rose
2009-03-19 13:38             ` Richard Riley
2009-03-19 15:03               ` Sebastian Rose
2009-03-19 16:12               ` Matthew Lundin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k56glbco.fsf@mundaneum.com \
    --to=zthjwsqqafhv-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).