Physics and Astronomy
Home School documents Web pages Navigation and tabs

 The sidebar Common options One-file directories More options Prefer tabs?

Creating the sidebar

Once you have more than one web page in a directory you will want a list of links to them in a sidebar, and of course nobody wants to have to change the side bar in every file every time they add a new file to the list.

In your directory create a file named sidebar.txt that looks like this:

title: School Web pages
crumbs: Web pages

./ Introduction

---Getting started
templates.html Templated pages

tips.html General tips
writing-style/ Writing style
mobiles/ Mobile phones

---On-line Utilities
colours/ Colour chooser
resizer.html Image resizer
mobiletest/ Mobile site tester


At time of writing the above was actually the source for the "School Web pages" section of the sidebar to the left. Ignoring for the moment the first few lines starting with a word followed by a colon we see:

• The first word on each line is the target the link will point to, the rest the link title.
• Make the title link short!
• './' means the current directory.
• If the target is a directory put the '/' on the end. In any context at all, when referring to the index file in a directory I recommend not explicitly putting in the 'index.html'.
• Lines starting with two or more dashes add the rest of the line as a section header.
• There are a number of other options.