This Gadget script makes it very easy to add the header to subpages. Here is how:
- Check in your preferences that the gadget is enabled.
- Fill up the header fields in the main page of the work.
- Create a Table of contents in the main page of the work. For an example, see The Life of Buddha.
- Click on a subpage link, and the header is automatically added in the new page with the corresponding values of the main page header.
If you change the table of contents thereafter, empty your browser cache and reload the main page of the work.