Physics and Astronomy |
|
Physics Home | Study here | Our Teaching | Our Research | Our Centres | News | Work here | EMPS |
School Web pages
Getting started
>Navigation & tabs
Advice
Utilities
|
||||||||||
Back to top
Navigation and tabs
Creating the sidebarOnce 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 accessing.html Editing your web pages templates.html Templated pages sidebars/ Navigation & tabs ---Advice tips.html General tips writing-style/ Writing style sources.html On-line advice mobiles/ Mobile phones ---On-line Utilities linkcheck.html Link checking colours/ Colour chooser resizer.html Image resizer mobiletest/ Mobile site testerAt 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:
SubmenusThe submenu: keyword at the top of this sidebar.txt file causes this subdirectory to be displayed as a submenu of the menu one level above rather than as a new menu on its own. If you want to do this make sure that the menu and its parent are both be short enough that the combined menu is not too long. |