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: Thu, 19 Mar 2009 10:43:00 +0100 [thread overview]
Message-ID: <877i2l7bap.fsf@mundaneum.com> (raw)
In-Reply-To: 82zlfiq7it.fsf@gmail.com
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
_______________________________________________
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
next prev parent reply other threads:[~2009-03-19 9:43 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 [this message]
2009-03-23 11:36 ` Sébastien Vauban
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=877i2l7bap.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).