Sidebar in CSS
Nomad
A Small Piece of Hell Icrontian
I've been redoing my portfolio websites and figured I'd ask this question here. One of the most bothersome things I encounter is that I like the flexibility of changing the projects I have, but am loathe to edit 12 other index pages when I want to make a change.
My current website is:
umich.edu/~hallockm
On the lefthand side I have
[html]
<li><a href="ip/index.html">Integrative Project</a></li>
<li><a href="fex/index.html">Faculty Exhibition</a></li>
<li><a href="americandream/index.html">American Dream</a></li>
<li><a href="icc/index.html">Inter-Cooperative Council </a></li>
<li><a href="hamlet/index.html">Hamlet</a></li>
<li><a href="waterforhumankind/index.html">Water for Humankind</a></li>
<li><a href="shithappens/index.html">Shit Happens</a></li>
<li><a href="invisibleman/index.html">Invisible Man</a></li>
<li><a href="vivaldicopland/index.html">Vivaldi & Copland</a></li>
<li><a href="fleetwooddiner/index.html">Fleetwood Diner</a></li>
<li><a href="apeoplestypeface/index.html">A People's Typeface</a></li>
<li><a href="aata/index.html">Ann Arbor Transit Authority</a></li>
<li><a href="letterpress/index.html">Letterpress</a></li>
<li><a href="harleydavidson/index.html">Harley-Davidson</a></li>
<li><a href="4thandtroy/index.html">4th & Troy</a></li>
<li><a href="322/index.html">322 Liberty Street</a></li>
<li><a href="ferndale/index.html">Ferndale Lofts</a></li>
<li><a href="trumplaza/index.html">Trump Plaza</a></li>
<li><a href="portfoliosocieties/index.html">Portfolio Societies</a></li>
<li><a href="technologyhealing/index.html">Technology Healing</a></li>
[/html]
If I want to change this, I have to do it in each index page. Is there a way around this?
My current website is:
umich.edu/~hallockm
On the lefthand side I have
[html]
<li><a href="ip/index.html">Integrative Project</a></li>
<li><a href="fex/index.html">Faculty Exhibition</a></li>
<li><a href="americandream/index.html">American Dream</a></li>
<li><a href="icc/index.html">Inter-Cooperative Council </a></li>
<li><a href="hamlet/index.html">Hamlet</a></li>
<li><a href="waterforhumankind/index.html">Water for Humankind</a></li>
<li><a href="shithappens/index.html">Shit Happens</a></li>
<li><a href="invisibleman/index.html">Invisible Man</a></li>
<li><a href="vivaldicopland/index.html">Vivaldi & Copland</a></li>
<li><a href="fleetwooddiner/index.html">Fleetwood Diner</a></li>
<li><a href="apeoplestypeface/index.html">A People's Typeface</a></li>
<li><a href="aata/index.html">Ann Arbor Transit Authority</a></li>
<li><a href="letterpress/index.html">Letterpress</a></li>
<li><a href="harleydavidson/index.html">Harley-Davidson</a></li>
<li><a href="4thandtroy/index.html">4th & Troy</a></li>
<li><a href="322/index.html">322 Liberty Street</a></li>
<li><a href="ferndale/index.html">Ferndale Lofts</a></li>
<li><a href="trumplaza/index.html">Trump Plaza</a></li>
<li><a href="portfoliosocieties/index.html">Portfolio Societies</a></li>
<li><a href="technologyhealing/index.html">Technology Healing</a></li>
[/html]
If I want to change this, I have to do it in each index page. Is there a way around this?
0
Comments
Just a thought, could be way off base as I don't work in JS much.
I would guess that that property's pretty specific to navigation menus, but it might be worth checking out?
Again, apologies. I know what you're looking for is something I've done, but I don't even know enough to be useful to tell you how exactly to do it. Let me know if you'd like to see the site code or if I can be helpful in some other way. A quick search on navCurrentPage should be helpful - it led me to this, at least.