I am using Bootstrap sidebar and... How do I avoid repeating the sidebar HTML code for sub-html files? Because if I suddenly want to change the sidebar menu titles, I have to manually change them all in each of sub-html files.
Basically what I want is to keep the sidebar and let the user scroll down the contents page. And I have several separate html files that are linked from the side-bar.
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li><a href="algorithm.html">Algorithm</a></li>
<li><a href="algorithm01.html">01: Algorithm & Sort</a></li>
<li><a href="algorithm02.html">02: Data Structure 1</a></li>
<li><a href="algorithm03.html">03: Data Structure 2</a></li>
<li><a href="algorithm04.html">04: Graph 1</a></li>
<li><a href="algorithm05.html">05: Graph 2</a></li>
<li><a href="algorithm06.html">06: Greedy Algorithm</a></li>
<li><a href="algorithm07.html">07: Dynamic Programming</a></li>
<li><a href="algorithm08.html">08: N Queen</a></li>
<li><a href="algorithm09.html">09: Programming Challenge 1</a></li>
<li><a href="algorithm10.html">10: Programming Challenge 2</a></li>
</ul>
</div>
And for contents for each algorithm01 ~ 10 file,
<div id="page-content-wrapper">
As mentioned above, I want to separate the sidebar code and still want to keep the sidebar for several sub-html files under the sidebar.
Thanks,