Add custom links to TOC

Allows users to add custom links in the sidebar, as per issue #304